b311480e |
1 | -- Created on: 2000-05-24 |
2 | -- Created by: data exchange team |
3 | -- Copyright (c) 2000-2012 OPEN CASCADE SAS |
4 | -- |
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. |
9 | -- |
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. |
12 | -- |
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. |
19 | |
7fd59977 |
20 | |
21 | |
22 | class EdgeDivide from ShapeUpgrade inherits Tool from ShapeUpgrade |
23 | |
24 | ---Purpose: |
25 | |
26 | uses |
27 | |
28 | Edge from TopoDS, |
29 | Face from TopoDS, |
30 | HSequenceOfReal from TColStd, |
31 | SplitCurve3d from ShapeUpgrade, |
32 | SplitCurve2d from ShapeUpgrade |
33 | |
34 | is |
35 | |
36 | Create returns mutable EdgeDivide from ShapeUpgrade; |
37 | ---Purpose: Empty constructor |
38 | |
39 | Clear (me: mutable); |
40 | |
41 | SetFace(me: mutable; F: Face from TopoDS); |
42 | ---C++: inline |
43 | ---Purpose: Sets supporting surface by face |
44 | |
45 | Compute(me: mutable; E: Edge from TopoDS) |
46 | returns Boolean is virtual; |
47 | |
48 | HasCurve2d(me) returns Boolean; |
49 | ---C++: inline |
50 | |
51 | HasCurve3d(me) returns Boolean; |
52 | ---C++: inline |
53 | |
54 | Knots2d(me) returns HSequenceOfReal from TColStd; |
55 | ---C++: inline |
56 | |
57 | Knots3d(me) returns HSequenceOfReal from TColStd; |
58 | ---C++: inline |
59 | |
60 | SetSplitCurve2dTool(me: mutable; splitCurve2dTool: SplitCurve2d from ShapeUpgrade); |
61 | ---Purpose: Sets the tool for splitting pcurves. |
62 | |
63 | SetSplitCurve3dTool(me: mutable; splitCurve3dTool: SplitCurve3d from ShapeUpgrade); |
64 | ---Purpose: Sets the tool for splitting 3D curves. |
65 | |
66 | GetSplitCurve2dTool(me) returns SplitCurve2d from ShapeUpgrade |
67 | is virtual; |
68 | ---Purpose: Returns the tool for splitting pcurves. |
69 | |
70 | GetSplitCurve3dTool(me) returns SplitCurve3d from ShapeUpgrade |
71 | is virtual; |
72 | ---Purpose: Returns the tool for splitting 3D curves. |
73 | ---Remark: here TopoDS_Edge can be used to transfer some specific information (tolerance, etc) |
74 | |
75 | fields |
76 | |
77 | myFace : Face from TopoDS is protected; |
78 | myHasCurve2d: Boolean is protected; |
79 | myHasCurve3d: Boolean is protected; |
80 | myKnots2d : HSequenceOfReal from TColStd is protected; |
81 | myKnots3d : HSequenceOfReal from TColStd is protected; |
82 | |
83 | mySplitCurve3dTool: SplitCurve3d from ShapeUpgrade; |
84 | mySplitCurve2dTool: SplitCurve2d from ShapeUpgrade; |
85 | |
86 | end EdgeDivide; |