b311480e |
1 | -- Created on: 1996-07-12 |
2 | -- Created by: Stagiaire Mary FABIEN |
3 | -- Copyright (c) 1996-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
8 | -- This library is free software; you can redistribute it and/or modify it under |
9 | -- the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | -- by the Free Software Foundation, with special exception defined in the file |
11 | -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | -- distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class NurbsConvertModification from BRepTools inherits Modification from BRepTools |
18 | |
19 | ---Purpose: Defines a modification of the geometry by a Trsf |
20 | -- from gp. All methods return True and transform the |
21 | -- geometry. |
22 | |
23 | uses Face from TopoDS, |
24 | Edge from TopoDS, |
25 | Vertex from TopoDS, |
26 | Location from TopLoc, |
27 | Shape from GeomAbs, |
28 | Pnt from gp, |
29 | |
30 | Surface from Geom, |
31 | Curve from Geom, |
32 | Curve from Geom2d, |
33 | MapOfTransient from TColStd, |
34 | ListOfShape from TopTools, |
35 | ListOfTransient from TColStd, |
36 | IndexedDataMapOfTransientTransient from TColStd |
37 | |
38 | is |
39 | |
6e33d3ce |
40 | Create returns NurbsConvertModification from BRepTools; |
7fd59977 |
41 | |
42 | |
43 | |
44 | NewSurface(me: mutable; F : Face from TopoDS; |
45 | S : out Surface from Geom; |
46 | L : out Location from TopLoc; |
47 | Tol : out Real from Standard; |
48 | RevWires : out Boolean from Standard; |
49 | RevFace : out Boolean from Standard) |
50 | |
51 | ---Purpose: Returns Standard_True if the face <F> has been |
52 | -- modified. In this case, <S> is the new geometric |
53 | -- support of the face, <L> the new location,<Tol> |
54 | -- the new tolerance.<RevWires> has to be set to |
55 | -- Standard_True when the modification reverses the |
56 | -- normal of the surface.(the wires have to be |
57 | -- reversed). <RevFace> has to be set to |
58 | -- Standard_True if the orientation of the modified |
59 | -- face changes in the shells which contain it. -- |
60 | -- Here, <RevFace> will return Standard_True if the |
61 | -- -- gp_Trsf is negative. |
62 | |
63 | |
64 | returns Boolean from Standard |
65 | ; |
66 | |
67 | |
68 | NewCurve(me: mutable; E : Edge from TopoDS; |
69 | C : out Curve from Geom; |
70 | L : out Location from TopLoc; |
71 | Tol: out Real from Standard) |
72 | |
73 | returns Boolean from Standard |
74 | ; |
75 | |
76 | ---Purpose: Returns Standard_True if the edge <E> has been |
77 | -- modified. In this case, <C> is the new geometric |
78 | -- support of the edge, <L> the new location, <Tol> |
79 | -- the new tolerance. Otherwise, returns |
80 | -- Standard_False, and <C>, <L>, <Tol> are not |
81 | -- significant. |
82 | |
83 | |
84 | NewPoint(me: mutable; V : Vertex from TopoDS; |
85 | P : out Pnt from gp; |
86 | Tol: out Real from Standard) |
87 | |
88 | returns Boolean from Standard |
89 | ; |
90 | |
91 | ---Purpose: Returns Standard_True if the vertex <V> has been |
92 | -- modified. In this case, <P> is the new geometric |
93 | -- support of the vertex, <Tol> the new tolerance. |
94 | -- Otherwise, returns Standard_False, and <P>, <Tol> |
95 | -- are not significant. |
96 | |
97 | |
98 | NewCurve2d(me: mutable; E : Edge from TopoDS; |
99 | F : Face from TopoDS; |
100 | NewE : Edge from TopoDS; |
101 | NewF : Face from TopoDS; |
102 | C : out Curve from Geom2d; |
103 | Tol : out Real from Standard) |
104 | |
105 | returns Boolean from Standard |
106 | ; |
107 | |
108 | ---Purpose: Returns Standard_True if the edge <E> has a new |
109 | -- curve on surface on the face <F>.In this case, <C> |
110 | -- is the new geometric support of the edge, <L> the |
111 | -- new location, <Tol> the new tolerance. |
112 | -- Otherwise, returns Standard_False, and <C>, <L>, |
113 | -- <Tol> are not significant. |
114 | |
115 | |
116 | NewParameter(me: mutable; V : Vertex from TopoDS; |
117 | E : Edge from TopoDS; |
118 | P : out Real from Standard; |
119 | Tol: out Real from Standard) |
120 | |
121 | returns Boolean from Standard |
122 | ; |
123 | |
124 | ---Purpose: Returns Standard_True if the Vertex <V> has a new |
125 | -- parameter on the edge <E>. In this case, <P> is |
126 | -- the parameter, <Tol> the new tolerance. |
127 | -- Otherwise, returns Standard_False, and <P>, <Tol> |
128 | -- are not significant. |
129 | |
130 | |
131 | |
132 | |
133 | |
134 | Continuity(me: mutable; E : Edge from TopoDS; |
135 | F1,F2 : Face from TopoDS; |
136 | NewE : Edge from TopoDS; |
137 | NewF1,NewF2: Face from TopoDS) |
138 | |
139 | returns Shape from GeomAbs |
140 | |
141 | ---Purpose: Returns the continuity of <NewE> between <NewF1> |
142 | -- and <NewF2>. |
143 | -- |
144 | -- <NewE> is the new edge created from <E>. <NewF1> |
145 | -- (resp. <NewF2>) is the new face created from <F1> |
146 | -- (resp. <F2>). |
147 | |
148 | ; |
149 | |
150 | |
151 | fields |
152 | |
153 | myled : ListOfShape from TopTools; |
154 | mylcu : ListOfTransient from TColStd; |
155 | myMap : IndexedDataMapOfTransientTransient from TColStd; |
156 | |
157 | end NurbsConvertModification; |