1 -- File: BlockFix_SphereSpaceModifier.cdl
2 -- Created: Tue Dec 7 12:01:49 2004
3 -- Author: Pavel Durandin
5 ---Copyright: Open CASCADE SA 2004
8 class SphereSpaceModifier from BlockFix inherits Modification from BRepTools
10 ---Purpose: Rotation of the parametric space of the sphere in order
11 -- to avoid the seam and degenerared edge within it
23 IndexedMapOfTransient from TColStd,
24 DataMapOfShapeInteger from TopTools
28 Create returns mutable SphereSpaceModifier from BlockFix;
30 SetTolerance(me: mutable; Toler: Real);
31 ---Purpose: Sets the tolerance for recognition of geometry
33 NewSurface(me: mutable; F : Face from TopoDS;
34 S : out Surface from Geom;
35 L : out Location from TopLoc;
36 Tol: out Real from Standard;
37 RevWires : out Boolean from Standard;
38 RevFace : out Boolean from Standard)
39 returns Boolean from Standard;
40 ---Purpose: Returns Standard_True if the face <F> has been
41 -- modified. In this case, <S> is the new geometric
42 -- support of the face, <L> the new location, <Tol>
43 -- the new tolerance. Otherwise, returns
44 -- Standard_False, and <S>, <L>, <Tol> are not
47 NewCurve(me: mutable; E : Edge from TopoDS;
48 C : out Curve from Geom;
49 L : out Location from TopLoc;
50 Tol: out Real from Standard)
51 returns Boolean from Standard;
52 ---Purpose: Returns Standard_True if the edge <E> has been
53 -- modified. In this case, <C> is the new geometric
54 -- support of the edge, <L> the new location, <Tol>
55 -- the new tolerance. Otherwise, returns
56 -- Standard_False, and <C>, <L>, <Tol> are not
59 NewPoint(me: mutable; V : Vertex from TopoDS;
61 Tol: out Real from Standard)
62 returns Boolean from Standard;
63 ---Purpose: Returns Standard_True if the vertex <V> has been
64 -- modified. In this case, <P> is the new geometric
65 -- support of the vertex, <Tol> the new tolerance.
66 -- Otherwise, returns Standard_False, and <P>, <Tol>
67 -- are not significant.
69 NewCurve2d(me: mutable; E : Edge from TopoDS;
71 NewE : Edge from TopoDS;
72 NewF : Face from TopoDS;
73 C : out Curve from Geom2d;
74 Tol : out Real from Standard)
75 returns Boolean from Standard;
76 ---Purpose: Returns Standard_True if the edge <E> has a new
77 -- curve on surface on the face <F>.In this case, <C>
78 -- is the new geometric support of the edge, <L> the
79 -- new location, <Tol> the new tolerance.
81 -- Otherwise, returns Standard_False, and <C>, <L>,
82 -- <Tol> are not significant.
84 -- <NewE> is the new edge created from <E>. <NewF>
85 -- is the new face created from <F>. They may be usefull.
87 NewParameter(me: mutable; V : Vertex from TopoDS;
89 P : out Real from Standard;
90 Tol: out Real from Standard)
91 returns Boolean from Standard;
92 ---Purpose: Returns Standard_True if the Vertex <V> has a new
93 -- parameter on the edge <E>. In this case, <P> is
94 -- the parameter, <Tol> the new tolerance.
95 -- Otherwise, returns Standard_False, and <P>, <Tol>
96 -- are not significant.
98 Continuity(me: mutable; E : Edge from TopoDS;
99 F1,F2 : Face from TopoDS;
100 NewE : Edge from TopoDS;
101 NewF1,NewF2: Face from TopoDS)
102 returns Shape from GeomAbs;
103 ---Purpose: Returns the continuity of <NewE> between <NewF1>
106 -- <NewE> is the new edge created from <E>. <NewF1>
107 -- (resp. <NewF2>) is the new face created from <F1>
110 ForRotation(me: mutable; F: Face from TopoDS) returns Boolean;
115 myMapOfFaces : DataMapOfShapeInteger from TopTools;
116 myMapOfSpheres: IndexedMapOfTransient from TColStd;
117 --myMapOfGeom: MapOfShapeTransient from TColStd;
119 end SphereSpaceModifier;