1 -- File: BRepTools_Modifier.cdl
2 -- Created: Thu Aug 25 10:03:36 1994
3 -- Author: Jacques GOUSSARD
5 ---Copyright: Matra Datavision 1994
8 class Modifier from BRepTools
12 uses Shape from TopoDS,
13 Modification from BRepTools,
14 DataMapOfShapeShape from TopTools
16 raises NullObject from Standard,
17 NoSuchObject from Standard
21 Create returns Modifier from BRepTools;
22 ---Purpose: Creates an empty Modifier.
25 Create(S: Shape from TopoDS)
26 returns Modifier from BRepTools;
27 ---Purpose: Creates a modifier on the shape <S>.
30 Create(S: Shape from TopoDS; M: Modification from BRepTools)
31 returns Modifier from BRepTools;
32 ---Purpose: Creates a modifier on the shape <S>, and performs
33 -- the modifications described by <M>.
36 Init(me: in out; S: Shape from TopoDS)
38 ---Purpose: Initializes the modifier with the shape <S>.
41 Perform(me: in out; M: Modification from BRepTools)
42 ---Purpose: Performs the modifications described by <M>.
43 raises NullObject from Standard
44 -- if the modifier has not been initialized with a shape.
49 ---Purpose: Returns Standard_True if the modification has
50 -- been computed successfully.
53 returns Boolean from Standard
57 ModifiedShape(me; S: Shape from TopoDS)
58 returns Shape from TopoDS
59 ---Purpose: Returns the modified shape corresponding to <S>.
62 raises NoSuchObject from Standard
63 -- if S is not the initial shape or a sub-shape
64 -- of the initial shape.
69 -- private implementation methods
71 Put(me: in out; S: Shape from TopoDS)
76 Rebuild(me: in out; S: Shape from TopoDS; M: Modification from BRepTools)
77 returns Boolean from Standard
83 myMap : DataMapOfShapeShape from TopTools;
84 myShape: Shape from TopoDS;
85 myDone : Boolean from Standard;