7fd59977 |
1 | -- File: BRepPrimAPI.cdl |
2 | -- Created: Tue Jul 6 17:29:03 1993 |
3 | -- Author: Remi LEQUETTE |
4 | -- <rle@phylox> |
5 | ---Copyright: Matra Datavision 1993 |
6 | |
7 | |
8 | |
9 | package BRepPrimAPI |
10 | |
11 | ---Purpose: The BRepBuilderAPI package provides an Application |
12 | -- Programming Interface for the BRep topology data |
13 | -- structure. |
14 | -- |
15 | -- The API is a set of classes aiming to provide : |
16 | -- |
17 | -- * High level and simple calls for the most common |
18 | -- operations. |
19 | -- |
20 | -- * Keeping an access on the low-level |
21 | -- implementation of high-level calls. |
22 | -- |
23 | -- * Examples of programming of high-level operations |
24 | -- from low-level operations. |
25 | -- |
26 | -- * A complete coverage of modelling : |
27 | -- |
28 | -- - Creating vertices ,edges, faces, solids. |
29 | -- |
30 | -- - Sweeping operations. |
31 | -- |
32 | -- - Boolean operations. |
33 | -- |
34 | -- - Global properties computation. |
35 | -- |
36 | -- |
37 | -- The API provides classes to build objects: |
38 | -- |
39 | -- * The constructors of the classes provides the |
40 | -- different constructions methods. |
41 | -- |
42 | -- * The class keeps as fields the different tools |
43 | -- used to build the object. |
44 | -- |
45 | -- * The class provides a casting method to get |
46 | -- automatically the result with a function-like |
47 | -- call. |
48 | -- |
49 | -- For example to make a vertex <V> from a point <P> |
50 | -- one can writes : |
51 | -- |
52 | -- V = BRepBuilderAPI_MakeVertex(P); |
53 | -- |
54 | -- or |
55 | -- |
56 | -- BRepBuilderAPI_MakeVertex MV(P); |
57 | -- V = MV.Vertex(); |
58 | -- |
59 | -- |
60 | -- For tolerances a default precision is used which |
61 | -- can be changed by the packahe method |
62 | -- BRepBuilderAPI::Precision. |
63 | -- |
64 | -- For error handling the BRepBuilderAPI commands raise only |
65 | -- the NotDone error. When Done is false on a command |
66 | -- the error description can be asked to the command. |
67 | -- |
68 | -- In theory the comands can be called with any |
69 | -- arguments, argument checking is performed by the |
70 | -- command. |
71 | |
72 | |
73 | |
74 | uses |
75 | StdFail, |
76 | gp, |
77 | TColgp, |
78 | Geom2d, |
79 | Geom, |
80 | GeomAbs, |
81 | TopAbs, |
82 | TopoDS, |
83 | TopTools, |
84 | TopLoc, |
85 | BRep, |
86 | BRepLib, |
87 | BRepTools, |
88 | BRepPrim, |
89 | BRepBuilderAPI, |
90 | BRepSweep |
91 | |
92 | is |
93 | |
94 | -- |
95 | -- Primitives |
96 | -- |
97 | |
98 | class MakeHalfSpace; --- inherits MakeShape from BRepBuilderAPI |
99 | |
100 | class MakeBox; --- inherits MakeShape from BRepBuilderAPI |
101 | |
102 | class MakeWedge; --- inherits MakeShape from BRepBuilderAPI |
103 | |
104 | deferred class MakeOneAxis; --- inherits MakeShape from BRepBuilderAPI |
105 | ---Purpose: Root class for rotational primitives. |
106 | |
107 | class MakeCylinder; --- inherits MakeShape from BRepBuilderAPI |
108 | |
109 | class MakeCone; --- inherits MakeShape from BRepBuilderAPI |
110 | |
111 | class MakeSphere; --- inherits MakeOneAxis from BRepPrimAPI |
112 | |
113 | class MakeTorus; --- inherits MakeOneAxis from BRepPrimAPI |
114 | |
115 | class MakeRevolution; --- inherits MakeOneAxis from BRepPrimAPI |
116 | |
117 | -- |
118 | -- Sweeping |
119 | -- |
120 | |
121 | deferred class MakeSweep; --- inherits MakeShape from BRepBuilderAPI |
122 | |
123 | class MakePrism; --- inherits MakeSweep from BRepPrimAPI |
124 | |
125 | class MakeRevol; --- inherits MakeSweep from BRepPrimAPI |
126 | |
127 | |
128 | |
129 | |
130 | end BRepPrimAPI; |