Commit | Line | Data |
---|---|---|
0b97567d K |
1 | -- File: BRepMesh_DiscretRoot.cdl |
2 | -- Created: Thu Apr 10 09:57:55 2008 | |
3 | -- Author: Peter KURNEV <pkv@irinox> | |
4 | -- | |
5 | ---Copyright: Matra Datavision 2008 | |
7fd59977 | 6 | |
0b97567d | 7 | deferred class DiscretRoot from BRepMesh |
7fd59977 | 8 | |
0b97567d K |
9 | inherits Transient from Standard |
10 | ||
11 | ---Purpose: | |
12 | -- This is a common interface for meshing algorithms | |
13 | -- instantiated by Mesh Factory and implemented by plugins. | |
7fd59977 | 14 | |
15 | uses | |
0b97567d K |
16 | Shape from TopoDS |
17 | ||
7fd59977 | 18 | --raises |
19 | ||
0b97567d K |
20 | is |
21 | Initialize | |
22 | returns DiscretRoot from BRepMesh; | |
23 | ||
24 | SetDeflection ( me : mutable; | |
25 | theDeflection : Real from Standard); | |
26 | ---Purpose: | |
27 | -- Setup linear deflection. | |
28 | ||
29 | ---C++: alias "Standard_EXPORT virtual ~BRepMesh_DiscretRoot();" | |
30 | ||
31 | Deflection (me) | |
32 | returns Real from Standard; | |
33 | ---Purpose: | |
34 | -- Returns linear deflection. | |
35 | ||
36 | SetAngle ( me : mutable; | |
37 | theAngle : Real from Standard); | |
38 | ---Purpose: | |
39 | -- Setup angular deflection. | |
40 | ||
41 | Angle (me) | |
42 | returns Real from Standard; | |
43 | ---Purpose: | |
44 | -- Returns angular deflection. | |
45 | ||
46 | SetShape ( me : mutable; | |
47 | theShape : Shape from TopoDS); | |
48 | ---Purpose: | |
49 | -- Set the shape to triangulate. | |
50 | ||
51 | Shape (me) | |
52 | returns Shape from TopoDS; | |
53 | ---C++: return const & | |
54 | ||
55 | Perform (me : mutable) | |
56 | is deferred; | |
57 | ---Purpose: | |
58 | -- Compute triangulation for set shape. | |
59 | ||
60 | IsDone (me) | |
61 | returns Boolean from Standard; | |
62 | ---Purpose: | |
63 | -- Returns true if triangualtion was performed and has success. | |
64 | ||
65 | -- | |
66 | -- Protected methods | |
67 | -- | |
68 | SetDone (me : mutable) | |
69 | is protected; | |
70 | ||
71 | SetNotDone (me : mutable) | |
72 | is protected; | |
73 | ||
74 | Init (me : mutable) | |
75 | is virtual protected; | |
76 | ||
77 | fields | |
78 | myDeflection : Real from Standard is protected; | |
7fd59977 | 79 | myAngle : Real from Standard is protected; |
0b97567d K |
80 | myShape : Shape from TopoDS is protected; |
81 | myIsDone : Boolean from Standard is protected; | |
82 | ||
7fd59977 | 83 | end DiscretRoot; |