CFx SDK Documentation  2023 SP0
Public Member Functions | List of all members
OdGeTol Class Reference

#include <GeTol.h>

Public Member Functions

 OdGeTol (double t=1.e-10)
 
 OdGeTol (double t1, double t2)
 
double equalPoint () const
 
double equalVector () const
 
void setEqualPoint (double val)
 
void setEqualVector (double val)
 

Detailed Description

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

    <group OdGe_Classes>

    See also
    <link ge_OdGeTol.html, Working with Tolerances>

Definition at line 48 of file GeTol.h.

Constructor & Destructor Documentation

◆ OdGeTol() [1/2]

OdGeTol::OdGeTol ( double  t = 1.e-10)
inline
Parameters
t[in] The tolerance for vectors and points evaluation.
t1[in] The tolerance for points evaluation.
t2[in] The tolerance for vectors evaluation.

Definition at line 56 of file GeTol.h.

◆ OdGeTol() [2/2]

OdGeTol::OdGeTol ( double  t1,
double  t2 
)
inline

Definition at line 60 of file GeTol.h.

Member Function Documentation

◆ equalPoint()

double OdGeTol::equalPoint ( ) const
inline

Returns the equalPoint tolerance.

Definition at line 68 of file GeTol.h.

◆ equalVector()

double OdGeTol::equalVector ( ) const
inline

Returns the equalVector tolerance.

Definition at line 76 of file GeTol.h.

◆ setEqualPoint()

void OdGeTol::setEqualPoint ( double  val)
inline

Sets the equalPoint tolerance to a specified value.

Parameters
val[in] equalPoint value to be set.

Definition at line 86 of file GeTol.h.

◆ setEqualVector()

void OdGeTol::setEqualVector ( double  val)
inline

Sets the equalVector tolerance to a specified value.

Parameters
val[in] equalVector tolerance to be set.

Definition at line 96 of file GeTol.h.


The documentation for this class was generated from the following file: