b311480e |
1 | -- Created on: 1997-06-26 |
2 | -- Created by: Laurent PAINNOT |
3 | -- Copyright (c) 1997-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
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. |
10 | -- |
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. |
13 | -- |
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. |
20 | |
7fd59977 |
21 | |
22 | private class Classifier from BRepMesh |
23 | |
24 | |
25 | |
26 | uses |
27 | Pnt2d from gp, |
28 | SequenceOfPnt2d from TColgp, |
29 | Face from TopoDS, |
30 | State from TopAbs, |
31 | SequenceOfInteger from TColStd, |
32 | SeqOfPtr from BRepTopAdaptor, |
33 | DataMapOfShapePairOfPolygon from BRepMesh, |
34 | IndexedMapOfInteger from TColStd, |
35 | IndexedMapOfVertex from BRepMesh, |
36 | Status from BRepMesh, |
37 | DataStructureOfDelaun from BRepMesh |
38 | |
39 | is |
40 | |
7fd59977 |
41 | Create (F : Face from TopoDS; |
42 | Tol : Real from Standard; |
43 | edges : DataMapOfShapePairOfPolygon from BRepMesh; |
44 | themap : IndexedMapOfInteger from TColStd; |
45 | Str : DataStructureOfDelaun from BRepMesh; |
46 | Umin, Umax, Vmin, Vmax: Real from Standard) |
47 | returns Classifier from BRepMesh; |
48 | |
49 | |
50 | Perform(me; Puv: Pnt2d from gp) |
51 | returns State from TopAbs; |
52 | |
53 | |
54 | State (me) |
55 | returns Status from BRepMesh; |
56 | ---C++: inline |
57 | |
7fd59977 |
58 | |
59 | Destroy(me: in out); |
60 | ---C++: alias ~ |
61 | |
62 | |
63 | AnalizeWire (me: in out; theSeqPnt2d : in SequenceOfPnt2d from TColgp; |
64 | Umin, Umax, Vmin, Vmax: in Real from Standard) |
65 | is private; |
66 | -- Private method called from constructor after some (piece of) wire |
67 | -- has been explored and put into <theSeqPnt2d>. |
68 | -- Here it is triangulated if it is a hole and anyway added to the bulk. |
69 | |
70 | fields |
71 | |
72 | TabClass : SeqOfPtr from BRepTopAdaptor; |
73 | TabOrien : SequenceOfInteger from TColStd; |
74 | Toluv : Real from Standard; |
75 | Face : Face from TopoDS; |
76 | U1 : Real from Standard; |
77 | V1 : Real from Standard; |
78 | U2 : Real from Standard; |
79 | V2 : Real from Standard; |
80 | myState : Status from BRepMesh; |
7fd59977 |
81 | |
82 | end Classifier from BRepMesh; |