API Reference > Structs, Records, Enums > OdGeContext Structure
OdGeContext Structure
Syntax
C++
struct OdGeContext { GE_STATIC_EXPORT OdGeTol gTol; GE_STATIC_EXPORT OdGeTol gZeroTol; GE_STATIC_EXPORT void (* gErrorFunc)(OdResult); GE_STATIC_EXPORT void (* gOrthoVector)(const OdGeVector3d& vect, OdGeVector3d& orthoVector); GE_STATIC_EXPORT void* (* gAllocMem)(unsigned long size); GE_STATIC_EXPORT void (* gFreeMem)(void* memBlock); };

GeGbl.h

Members 
Description 
GE_STATIC_EXPORT OdGeTol gTol; 
Provides the global default OdGeTol tolerance object. 
GE_STATIC_EXPORT OdGeTol gZeroTol; 
Provides the global 0.0 default OdGeTol tolerance object. 
GE_STATIC_EXPORT void (* gErrorFunc)(OdResult); 
A function pointer to a user-defined error handler. 
GE_STATIC_EXPORT void (* gOrthoVector)(const OdGeVector3d& vect, OdGeVector3d& orthoVector); 
A function pointer to a user-defined function that returns orthoVector orthogonal to vect. 
GE_STATIC_EXPORT void* (* gAllocMem)(unsigned long size); 
A function pointer to a user-defined memory allocation function for all new operations in the OdGe library. 
GE_STATIC_EXPORT void (* gFreeMem)(void* memBlock); 
A function pointer to a user-defined memory allocation function for all delete operations in the OdGe library. 

This structure provides a namespace for tolerance values and functions ubiquitous to the OdGe library.

TD_Ge 

 

Copyright © 2002–2020. Open Design Alliance. All rights reserved.