Название: Computer Aided Design and Manufacturing
Автор: Zhuming Bi
Издательство: John Wiley & Sons Limited
Жанр: Техническая литература
isbn: 9781119534242
isbn:
3 The extension of an object is finite; the model can be mapped to a 2D plan for computer visualization.
4 An object can be generated as a composition of a finite number of solid primitives and the modelled object model can be stored in a computer.
5 An object can be modelled as a closed set in terms of rigid solid motions.
2.4.5.1 Solid Primitives
Solid primitives are the simplest solids used in CSG. As shown in Figure 2.29, most commonly used primitives include cuboids, cylinders, prisms, spheres, cones, and tori. Note that different solid modelling tools may use different solid primitives in CSG.
Figure 2.29 Examples of solid primitives. (a) Cuboid. (b) Rectangle cuboid. (c) Prism. (d) Sphere. (e) Tapped cylinder. (f) Cylinder. (g) Cone. (h) Torus.
For an object with a complex geometry, solid primitives can be customized. Table 2.11 lists some common methods used to create solid primitives (i.e. design features) in a solid modelling tool. These modelling tools include extruding, revolving, sweeping, lofting, and many others.
Table 2.11 Modelling tools for customized solid primitives.
Modelling tool | Explanation | Example |
Extruding | Extruding creates a solid by moving a two‐dimensional profile along a straight path. |
|
Revolving | Revolving creates a solid by revolving a two‐dimensional profile along an axis. |
|
Sweeping | Sweeping creates a solid by translating a 2D profile along a 3D path with or without one or a few of 3D guide curves. |
|
Lofting | Lofting creates a solid by specifying and connecting vertices on a series of 2D profiles. |
|
2.4.5.2 Composition Operations
In CSG, an object is constructed from solid primitives by composition operations. Eligible composition operations are the Boolean operations on sets, i.e. union (∪), intersection (∩), and difference (\), as well as associated geometric transformations of those sets.
For a pair of solid primitives with given postures, different composition operations lead to different outcomes of assembled objects. Figure 2.30 shows three different objects from the compositions of a rectangular cuboid and a cylinder primitive.
Figure 2.30 Differences of Boolean operations. (a) Two primitives at given positions. (b) A∪B. (c) A∩B. (d) A\B. (e) B\A.
Other than the Boolean operations among solid primitives, a coordinate transformation can be applied to individual primitives before a Boolean operation takes place. Common operations of coordinate transformation include translating, copying, rotating, mirroring, and scaling. Figure 2.31 shows some examples of these operations.
Figure 2.31 Common operations of coordinate transformation. (a) Translating. (b) Rotating. (c) Mirroring. (d) Scaling.
2.4.5.3 CSG Modelling
Two basic elements of a solid model are (i) elemental geometric solids Ti (i = 1, 2, 3, …, N), where N is the number of available solid primitives of the object, and (ii) the set of composition operations ⊗ for a Boolean operation (‘∪’, ‘∩’, or ‘\’) of geometric solids.
A series of composition operations can be expressed as
(2.19)
where TC stands for the assembled object, Ti (i = 1, 2, 3, …, N) are the primitives in the object, and ⊗ is one of the Boolean operations (‘∪’, ‘∩’, and ‘\’).
2.4.5.4 Modelling Procedure
The procedure of CSG modelling is as follows:
1 Define a set of solid primitives.
2 Create dimensional variables and constraints of solid primitives.
3 Transform each solid primitive into the appropriate position, applying the generalized set operations.
4 Finally, combine elemental solids to generate a unique and legal solid model.
The above procedure shows that the resulting solid model is affected by (i) the set of solid primitives and dimensions, (ii) locations and orientations of solid primitives, and (iii) the types and orders of the Boolean operations of solid primitives. Figure 2.32 shows different solid models from the same set of solid primitives.
Figure 2.32 Different solid models from the same set of solid primitives.
2.4.5.5 Data Structure of CSG Models
Figure 2.32 shows that a CSG model consists of geometric and topological data, which is similar to a model from the B‐Rep modelling process. A data structure of a CSG model does not give the model shape directly; instead, it consists СКАЧАТЬ