1 -- Created on: 1994-03-10
2 -- Created by: Laurent BUCHARD
3 -- Copyright (c) 1994-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.
23 deferred class SolidExplorer from TopClass
25 ---Purpose: Provide an exploration of a BRep Shape for the
36 Reject(me; P : Pnt from gp) returns Boolean
37 ---Purpose: Should return True if the point is outside a
38 -- bounding volume of the shape.
41 Segment(me: in out; P : Pnt from gp;
42 L : out Lin from gp; Par : out Real)
43 ---Purpose: Returns in <L>, <Par> a segment having at least
44 -- one intersection with the shape boundary to
45 -- compute intersections.
49 OtherSegment(me: in out; P : Pnt from gp;
50 L : out Lin from gp; Par : out Real)
51 ---Purpose: Returns in <L>, <Par> a segment having at least
52 -- one intersection with the shape boundary to
53 -- compute intersections.
55 -- The First Call to this method returns a line which
56 -- point to a point of the first face of the shape.
57 -- The Second Call provide a line to the second face
60 -- if the method is called N times on a shape with F
61 -- faces (N>F) the line point to other points on the
65 InitShell(me : in out)
66 ---Purpose: Starts an exploration of the shells.
69 MoreShells(me) returns Boolean
70 ---Purpose: Returns True if there is a current shell.
73 NextShell(me : in out)
74 ---Purpose: Sets the explorer to the next shell and returns
75 -- False if there are no more wires.
78 RejectShell(me; L : Lin from gp; Par : Real) returns Boolean
79 ---Purpose: Returns True if the shell bounding volume does not
80 -- intersect the segment.
86 ---Purpose: Starts an exploration of the faces.
89 MoreFaces(me) returns Boolean
90 ---Purpose: Returns True if there is a current face.
94 ---Purpose: Sets the explorer to the next face and returns
95 -- False if there are no more wires.
98 CurrentFace(me) returns Face from TopoDS
99 ---Purpose: Returns the current face.
102 RejectFace(me; L : Lin from gp; Par : Real) returns Boolean
103 ---Purpose: Returns True if the face bounding volume does not
104 -- intersect the segment.
108 --------------------------------------------------------------------