AcGe类的误差

struct AcGeContext {
  AcGeTol gTol;
  void (* gErrorFunc)();
  void (* gOrthoVector)(const AcGeVector3d&,AcGeVector3d&);
  void* (* gAllocMem)(size_t);
  void* (* gAllocMemLeak)(size_t, const char *, int);
  void (* gFreeMem)(void*);
  void* (* gAllocMemNear)(size_t, AcGe::metaTypeIndex, const void*);
  void* (* gAllocMemNearVector)(size_t, AcGe::metaTypeIndex, unsigned int, const void*);
  void (* gSetExternalStore)(const void*);
  void (* gAssertFunc)(const ACHAR *condition, const ACHAR *filename, int lineNumber, const ACHAR *status);
};

gegbl.h

Members 
Description 
AcGeTol gTol; 
Provides a "global" default tolerance object. This is an AcGeTol object that contains the default AcGeTol tolerance values (equalPoint and equalVector tolerances set to 1.e-10). 
void (* gErrorFunc)(); 
This function pointer can be set to point to a function that can be used to handle errors. By default, this pointer points to a function that is empty (that is, does nothing more than return). 
void (* gOrthoVector)(const AcGeVector3d&,AcGeVector3d&); 
This function pointer goes to a function that calculates a vector that is orthogonal to vec and sets orthoVec to the result.
If the absolute values of the X and Y components are each less than 1/64, then: orthoVec.x is set to vec.z orthoVec.y is set to 0.0 orthoVec.z is set to -vec.x
Otherwise: orthoVec.x is set to -vec.y orthoVec.y is set to vec.x orthoVec.z is set to 0.0 
void* (* gAllocMem)(size_t); 
This function pointer points to a user-defined function for allocating memory. All new operations in gelib go through the function pointed to by gAllocMem. If an application is using a different memory manager than gelib, then this function pointer can be set to point to the application's own memory allocation function. This avoids problems that arise from having an application delete objects that were created by gelib using a different memory manager than the application. 
void (* gFreeMem)(void*); 
This function pointer points to a user-defined function for freeing memory. All delete operations in gelib go through the function pointed to by gFreeMem. 

The AcGeContext structure provides a namespace for a tolerance data value and a few functions that are used throughout the AcGe library.

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值