0023219: Triangulation is not built on a planar face
[occt.git] / src / BRepMesh / BRepMesh_Classifier.cdl
CommitLineData
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
22private class Classifier from BRepMesh
23
24
25
26uses
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
39is
40
67263fce 41 Create (theFace : Face from TopoDS;
42 theTolUV : Real from Standard;
43 theEdges : DataMapOfShapePairOfPolygon from BRepMesh;
44 theMap : IndexedMapOfInteger from TColStd;
45 theStructure : DataStructureOfDelaun from BRepMesh;
46 theUmin, theUmax, theVmin, theVmax : Real from Standard)
7fd59977 47 returns Classifier from BRepMesh;
48
49
67263fce 50 Perform(me; thePoint: Pnt2d from gp)
7fd59977 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);
67263fce 60 ---C++: alias ~
7fd59977 61
62
67263fce 63 AnalizeWire (me : in out;
64 theSeqPnt2d : in SequenceOfPnt2d from TColgp;
65 theUmin, theUmax, theVmin, theVmax: in Real from Standard)
7fd59977 66 is private;
67 -- Private method called from constructor after some (piece of) wire
68 -- has been explored and put into <theSeqPnt2d>.
69 -- Here it is triangulated if it is a hole and anyway added to the bulk.
70
71fields
72
67263fce 73 myTabClass : SeqOfPtr from BRepTopAdaptor;
74 myTabOrient : SequenceOfInteger from TColStd;
75 myTolUV : Real from Standard;
76 myFace : Face from TopoDS;
7fd59977 77 myState : Status from BRepMesh;
7fd59977 78
79end Classifier from BRepMesh;