BRL-CAD
|
librt specific tolerance information. More...
Files | |
file | tol.h |
Macros | |
#define | RT_LEN_TOL (1.0e-8) |
#define | RT_DOT_TOL (0.001) |
#define | RT_PCOEF_TOL (1.0e-10) |
#define | RT_ROOT_TOL (1.0e-5) |
Functions | |
struct bn_tol * | rt_tol_default (struct bn_tol *tol) |
librt specific tolerance information.
These routines provide access to the default tolerance values available within LIBRT. These routines assume working units of 'mm' and are idealized to only attempt to account for cross-platform hardware and floating point instability. That is to say that the default tolerance values are tight.
Fills in the provided bn_tol structure with compile-time default tolerance values. These presently correspond to a distance tolerance of 5e-5 (assuming default working units is 1/2000th a mm) and a perpendicularity tolerance of 1e-6. If tol is NULL, a structure is allocated, initialized, and returned.