API Reference > OdGe Classes > OdGeTol Class
OdGeTol Class
OdGeTol
Syntax
C++
class OdGeTol;

GeTol.h

This class represents tolerances for vectors or points coincidence. For evaluating points and vectors OdGeTol stores the equalPoint and equalVector values which are used as follows:

  1. Two points, p1 and p2, are equal if (p1 - p2).length() <= equalPoint.
  2. Two vectors, v1 and v2, are equal if (v1 - v2).length() <= equalVector.
  3. Two vectors, v1 and v2, are parallel if v1/v1.length() - v2/v2.length()).length() < equalVector OR (v1/v1.length() + v2/v2.length()).length() < equalVector.
  4. Two vectors, v1 and v2, are perpendicular if abs((v1.dotProduct(v2))/(v1.length()*v2.length())) <= equalVector.
  5. Two lines or rays are parallel (or perpendicular) if their directional vectors are parallel (or perpendicular).
 

Corresponding C++ library: TD_Ge 

 

 
Name 
Description 
 
This is the overview for the OdGeTol constructor overload. 
 
Name 
Description 
 
Returns the equalPoint tolerance. 
 
Returns the equalVector tolerance. 
 
Sets the equalPoint tolerance to a specified value.
 
 
Sets the equalVector tolerance to a specified value.
 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.