[Structlayout (layoutkind. Sequential), wrapper ("acgetol")]
Public StructTolerance {
}
Description
This. Net class wraps acgetol ObjectARX class.
This is an instantiable class that is by default initialized to the default tolerances. subsequently, the tolerances within it can be customized to suit a specific need. for example, an instance of this class may be specialized for use during surface intersection.
Class tolerance keeps two properties, vertex point and regression vector, which are used in evaluation according to the following rules:
1. Two points, P1 and P2, are equal if
(P1-P2). Length () <= destination point
2. Two vectors, V1 and V2, are equal if
(V1-V2). Length () <= vector Vector
3. Two vectors, V1 and V2, are parallel if
(V1/v1.length ()-v2/v2.length (). Length () <vector Vector
Or
(V1/v1.length () + v2/v2.length (). Length () <vector Vector
4. Two vectors, V1 and V2, are perpendicular if
ABS (v1.dotproduct (V2)/(v1.length () * v2.length () <= vector Vector
5. Two lines or rays are parallel (perpendicular) if their directional vectors are parallel (perpendicular)
Notes
Two lines are equal as point sets if, for any point on any line, there is a point on the other line within the specified point tolerance from the first point. this implies that two lines with common point and parallel directional vectors are equal as point sets in the portion of the modeling space of diam, if only the tolerance vector is set tighter than allocation point.