1 -- Created on: 1996-07-15
2 -- Created by: Laurent BUCHARD
3 -- Copyright (c) 1996-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
24 class SClassifier from BRepClass3d
26 ---Purpose: Provides an algorithm to classify a point in a solid.
33 SolidExplorer from BRepClass3d
36 DomainError from Standard
43 ---Purpose: Empty constructor.
44 returns SClassifier from BRepClass3d;
47 Create(S : in out SolidExplorer from BRepClass3d;
49 Tol : Real from Standard)
50 ---Purpose: Constructor to classify the point P with the
51 -- tolerance Tol on the solid S.
52 returns SClassifier from BRepClass3d;
56 S : in out SolidExplorer from BRepClass3d;
58 Tol : Real from Standard);
59 ---Purpose: Classify the point P with the
60 -- tolerance Tol on the solid S.
62 PerformInfinitePoint(me : in out;
63 S : in out SolidExplorer from BRepClass3d;
64 Tol : Real from Standard);
65 ---Purpose: Classify an infinite point with the
66 -- tolerance Tol on the solid S.
70 ---Purpose: Returns True if the classification has been
71 -- computed by rejection.
72 -- The State is then OUT.
73 returns Boolean from Standard;
76 State(me) returns State from TopAbs;
77 ---Purpose: Returns the result of the classification.
79 IsOnAFace(me) returns Boolean from Standard;
80 ---Purpose: Returns True when the point is a point of a face.
83 ---Purpose: Returns the face used to determine the
84 -- classification. When the state is ON, this is the
85 -- face containing the point.
87 -- When Rejected() returns True, Face() has no signification.
88 returns Face from TopoDS;
100 myFace : Face from TopoDS;
101 myState : Integer from Standard; -- 1: Rejected 2: IsOnFace 3: In 4: Out