BRL-CAD
librt Specific Tolerances

librt specific tolerance information. More...

Collaboration diagram for librt Specific Tolerances:

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_tolrt_tol_default (struct bn_tol *tol)
 

Detailed Description

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.

Macro Definition Documentation

◆ RT_LEN_TOL

#define RT_LEN_TOL   (1.0e-8)

Definition at line 77 of file tol.h.

◆ RT_DOT_TOL

#define RT_DOT_TOL   (0.001)

Definition at line 78 of file tol.h.

◆ RT_PCOEF_TOL

#define RT_PCOEF_TOL   (1.0e-10)

Definition at line 79 of file tol.h.

◆ RT_ROOT_TOL

#define RT_ROOT_TOL   (1.0e-5)

Definition at line 80 of file tol.h.

Function Documentation

◆ rt_tol_default()

struct bn_tol * rt_tol_default ( struct bn_tol tol)

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.