1 -- Created on: 2002-08-05
2 -- Created by: Peter KURNEV
3 -- Copyright (c) 2002-2012 OPEN CASCADE SAS
5 -- The content of this file is subject to the Open CASCADE Technology Public
6 -- License Version 6.5 (the "License"). You may not use the content of this file
7 -- except in compliance with the License. Please obtain a copy of the License
8 -- at http://www.opencascade.org and read it completely before using this file.
10 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13 -- The Original Code and all software distributed under the License is
14 -- distributed on an "AS IS" basis, without warranty of any kind, and the
15 -- Initial Developer hereby disclaims all such warranties, including without
16 -- limitation, any warranties of merchantability, fitness for a particular
17 -- purpose or non-infringement. Please see the License for the specific terms
18 -- and conditions governing the rights and limitations under the License.
22 class Checker from BOPTools inherits PaveFiller from BOPTools
25 -- class that provides the algorithm
26 -- to check a shape on self-interference.
30 ListOfCheckResults from BOPTools,
31 InterferencePool from BOPTools,
33 ShapeEnum from TopAbs,
38 returns Checker from BOPTools;
42 Create (aS:Shape from TopoDS)
43 returns Checker from BOPTools;
45 --- Contructs the object using the shape <aS> to check
47 Create (aIP: InterferencePool from BOPTools)
48 returns Checker from BOPTools;
50 --- Contructs the object using the <InterferencePool>
54 ---C++: alias "Standard_EXPORT virtual ~BOPTools_Checker(){Destroy();}"
59 SetPerformType(me: in out; StopOnFirstFaulty: Boolean from Standard);
60 ---Purpose: if <StopOnFirstFaulty == Standard_True> the process stops
61 -- and the exception throws; otherwise all faulties are searched
66 --- Launches the algorithm
69 aS:Shape from TopoDS);
74 returns Shape from TopoDS;
81 returns ListOfCheckResults from BOPTools;
82 ---C++: return const &
83 ---Purpose: returnes a result of check
86 returns Boolean from Standard;
89 --- Retrns TRUE if there is interferred sub-shapes .
92 is redefined protected ;
94 --- See in base classe, please
97 is redefined protected ;
99 --- See in base classe, please
102 is redefined protected ;
104 --- See in base classe, please
107 is redefined protected ;
109 --- See in base classe, please
112 is redefined protected ;
114 --- See in base classe, please
117 is redefined protected ;
119 --- See in base classe, please
121 PrepareEdges (me:out)
122 is redefined protected ;
124 --- Prepare end paves for each edge
126 PreparePaveBlocks (me:out;
127 aType1: ShapeEnum from TopAbs;
128 aType2: ShapeEnum from TopAbs)
129 is redefined protected ;
133 PreparePaveBlocks (me:out;
134 anE:Integer from Standard)
135 is redefined protected ;
137 --- Prepare end paves for the edge <anE>
140 myShape : Shape from TopoDS;
141 myCheckResults : ListOfCheckResults from BOPTools;
142 myStopOnFirst : Boolean from Standard;
143 myEntryType : Integer from Standard;