1 -- File: TopClass_SolidClassifier.cdl
2 -- Created: Wed Mar 30 18:28:29 1994
3 -- Author: Laurent BUCHARD
5 ---Copyright: Matra Datavision 1994
10 generic class SolidClassifier from TopClass
11 (TheSolidExplorer as any;
12 TheIntersection3d as any)
14 ---Purpose: Provides an algorithm to classify a point in a solid.
25 DomainError from Standard
32 ---Purpose: Empty constructor.
33 returns SolidClassifier from TopClass;
36 Create(S : in out TheSolidExplorer;
38 Tol : Real from Standard)
39 ---Purpose: Constructor to classify the point P with the
40 -- tolerance Tol on the solid S.
41 returns SolidClassifier from TopClass;
45 S : in out TheSolidExplorer;
47 Tol : Real from Standard);
48 ---Purpose: Classify the point P with the
49 -- tolerance Tol on the solid S.
53 ---Purpose: Returns True if the classification has been
54 -- computed by rejection.
55 -- The State is then OUT.
56 returns Boolean from Standard;
59 State(me) returns State from TopAbs;
60 ---Purpose: Returns the result of the classification.
62 IsOnAFace(me) returns Boolean from Standard;
63 ---Purpose: Returns True when the point is a point of a face.
66 ---Purpose: Returns the face used to determine the
67 -- classification. When the state is ON, this is the
68 -- face containing the point.
70 -- When Rejected() returns True, Face() has no signification.
71 returns Face from TopoDS;
75 myFace : Face from TopoDS;
76 myState : Integer from Standard; -- 1: Rejected 2: IsOnFace 3: In 4: Out