7fd59977 |
1 | // File: TopoDS_Builder.lxx |
2 | // Created: Tue Apr 9 18:25:03 1991 |
3 | // Author: Remi LEQUETTE |
4 | |
5 | #include <TopoDS_TWire.hxx> |
6 | #include <TopoDS_TShell.hxx> |
7 | #include <TopoDS_TSolid.hxx> |
8 | #include <TopoDS_TCompSolid.hxx> |
9 | #include <TopoDS_TCompound.hxx> |
10 | #include <TopoDS_Wire.hxx> |
11 | #include <TopoDS_Shell.hxx> |
12 | #include <TopoDS_Solid.hxx> |
13 | #include <TopoDS_CompSolid.hxx> |
14 | #include <TopoDS_Compound.hxx> |
15 | |
16 | |
17 | //======================================================================= |
18 | //function : MakeWire |
19 | //purpose : Make an empty wire |
20 | //======================================================================= |
21 | |
22 | inline void TopoDS_Builder::MakeWire (TopoDS_Wire& W) const |
23 | { |
24 | Handle(TopoDS_TWire) TW = new TopoDS_TWire(); |
25 | MakeShape(W,TW); |
26 | } |
27 | |
28 | |
29 | //======================================================================= |
30 | //function : MakeShell |
31 | //purpose : Make an empty Shell |
32 | //======================================================================= |
33 | |
34 | inline void TopoDS_Builder::MakeShell (TopoDS_Shell& S) const |
35 | { |
36 | Handle(TopoDS_TShell) TS = new TopoDS_TShell(); |
37 | MakeShape(S,TS); |
38 | } |
39 | |
40 | //======================================================================= |
41 | //function : MakeSolid |
42 | //purpose : Make an empty Solid |
43 | //======================================================================= |
44 | |
45 | inline void TopoDS_Builder::MakeSolid (TopoDS_Solid& S) const |
46 | { |
47 | Handle(TopoDS_TSolid) TS = new TopoDS_TSolid(); |
48 | MakeShape(S,TS); |
49 | } |
50 | |
51 | //======================================================================= |
52 | //function : MakeCompSolid |
53 | //purpose : Make an empty CompSolid |
54 | //======================================================================= |
55 | |
56 | inline void TopoDS_Builder::MakeCompSolid (TopoDS_CompSolid& C) const |
57 | { |
58 | Handle(TopoDS_TCompSolid) TC = new TopoDS_TCompSolid(); |
59 | MakeShape(C,TC); |
60 | } |
61 | |
62 | |
63 | //======================================================================= |
64 | //function : MakeCompound |
65 | //purpose : Make an empty Compound |
66 | //======================================================================= |
67 | |
68 | inline void TopoDS_Builder::MakeCompound (TopoDS_Compound& C) const |
69 | { |
70 | Handle(TopoDS_TCompound) TC = new TopoDS_TCompound(); |
71 | MakeShape(C,TC); |
72 | } |