Professional Documents
Culture Documents
116
Surfaces and 3olids
of anobject can take different forms, depending on the choice of fractal representatin
119
Fractal objects are described with a procedure that specifies repeated operation in order model and three-dimensional geormetric model
as two-dimensional geometric A three
visualisation.
aDpropriate computer graphics
Let us understand the need of solid modelling
Fig. 4.15.
With a union operation the result is a single solid object incorporating all the space
Fig. 4.13. Combining
two primitives, a cone and a hemisphere using Occupied by each one of the individual components. Refer figure 4.16.
union
operation produces a new object.
in the figure a cone and a hemisphere are placed
adjacent to each other. On applying
the union operation, a combined object is obtained as shown in Fig. 4.13(b).
Readymade primitives are provided in most of the packages which can be given suitable
dimensions. Otherwise the primitives themselves can be formed using construction commands
like sweep., blend, extrude, revolve or their likes. To create a new three dimensional solid
using CSG method, two primitives are dragged into a region of space and given a suitable
orientation with respect to each other. Then a suitable Boolean operation is used to combine
the volumes of two primitives. Now more primitives can be added one by one to this new
solid to get the final shape. An object designed using this method can be represented by
a binary trees. An example of binary tree representation for an object generated by CSG
technique is shown in Fig. 4.14.
Fig. 4.16.
CSG With difference operation the result is a single solid incorporating the space which is
object
oCcupied by the first component minus the space occupied by the other component
Refer figure 4.17.
ocr1
opor 2
.
obj 1
obj 2 obj 3 obË
Fig. 4.17.
When two or more primitives are combined with intersection operation, the resuit is a
124 Computer Aidod Design Surfaces and Solids
single solid incorpoi ating the space which is in commonly used to implement CSG operalions. In this
occupied by both the primitives. Refer Fig. 4.18 A technique called Ray-casting
a plane called "firing plane'
is assumed corresponding to pixel plane of a video
method, are fired from each pixel position through
the objects
monitor. From this firing plane, rays This helps in determining the surface
are to be combined using Boolean operation.
that to distance
and to sort the intersection points according
nterseclion intersections along each ray path are determined by the
the firing plane. Now the surface limits of the composite objects
from
set operation. An example of ray casting
technique for determination of surface
Specified
timits for the CSG object
it given in figure 4.21(a)
Pig. 4.18.
Extrud
(b) Fig. 4.21. (c) Ray casting technique for generating CSG objects
Fig. 4.19.
object 1-
Section 4-Path Pixel Ray
->
Sweep
Firing
Plane
Fig. 4.22. (b) Deternmining the surface limits and volume using ray casting technique
possible to decide whether or surface of the solid models. ated by a 2D cross-section being swept along normal to
a
simple sweep can be
not a pixel has Using this technique, it is plane of cross-section area It
the colour to be to be set
bright, the value known
is k as translational
sweep or extrusion. Figure 4.24 illustrates a
with a grOup of
given to that
pixel. The technique has also been
on a grey scale or translational sweep
solve visible
overlapping objects, such as models of machinesuccessfully used to deal
surface problem. tool
nearest to the screen.
According to the technique, that surface assemblies etc. to
is visible which
For example, the single ray shown in is
object at 1 and A, then object 2 at figure above, first intersects Direction
B, then again object 1 at C and
distance from the
the colour of the surface
screen to the intersected surfaces
nearest to the screen.
are
object 2 at D. The
computed. Then the pixel is set to O of sweep
V,) and E =
f (V, V).
vertices, and an edge in a function of two
surfaces, i.e. S f
intersecting
=
(V, V2, V. V) and E =f (S,, S)
Often, more sophisticated data structure such as linked list more practical choice.
1-
Fig. 4.23. Boundry representation technique.
Axis of
rotation
Fig. 4.25. A washer created by rotational sweep.
Surfaces and Solids
technique of spatial partitioning representation analogous to cell decomposition but TABLE 4.1. Eight colour codes for 3 bit per pixal frame
t is
the difference is that, in spatial occupancy enumeration, the solid is subdivided into exactly
cells arranged in a fixed regular grid. These cells or volume elements are called
Colour Stored colour values in Displayed
identical
Various solid shapes such as cube, pyramid, prism etc. can be used as voxels but
code frame buffer corresponding to colours
vOxels. Red Green Blue
the most commonly used type is the cube. Representation of solid as
Is known as cuberille.
regular array of cubes
O Black
Spatial occupancy enumeration is an approximation technique.
0 1 Blue
For creating solid model using spatial occupancy enumeration, CAD engineer
has to
conirol the presence or absence of a cell at various iocations of the model so as to give Green
ta shape, as close as possible to the real object. For example, if a sphere is approximated Cyan
by cubic cels, true shape of sphere cannot be achieved. This is an obvious disadvantage
of
Red
spalial occupancy enumeration although the shape can be improved by reducing the size
of cell and increasing the
O 1 Magenta
number of cells. It is easy to determine whether a cell lies inside
or
Lineentity
5 Line entity
6
Projectors
Ptg.1.
a
Fig 4.33
Surfaces and Solids
more realistic as
I is easily Derspective projection appears
is Similar to
that of photographic
tographic camera
plane. For example, consider orthographic projection onto x-z plane
as
shown perceptive projection
N.Y-Z visual effect of
2-1
in figure 3 23(b). It can be comprehended that x, = x . y2 = 0, but z2 = 21. h e transtormation of projection, parallel lines appear to converoe
-ause this type
human eyes. In smaller than objects
matrix can be written as tems as well a s appear to be distant objects
and
in the background, that objects appear to bbe
distant point illusionary
characteristic,
0 0 0
to the viewing
position. This perspective fore shortening
0 0 0 o
ger viewing position
increases in called
X
Fig. 4.35 Perspective view and var1shing point of a cube.
of
An anomaly in the perspective projection is
that we get a reverted image
which is behind the centre of projection. This characteristic is called view confusion Secondly.
an object
allhough perspective projection seems realistic, it is not useful for recording actual shape
Fig. 4.34 and dimensions of the objects. To derive the transformation matrix of perspectve
transformation using origin as the centre of projection, refer figure 4.36. The view plane
() Translate point Po to origin.
(projection plane) passes through point Po Xo Yo. Zo) and has normal vector N = n ' + nj
(i) Perform alignment of vector D of projection plane in the direction of i. on view plane. Since vector P0 and PO have
+nak. Let point Pis projected to point
P
(i) Project Pi to x
on z -
matrices, they can be used derive the above composite transformation matrix. Based on the
direction of projection on the three principal axis, orthogonal projection can be classified
as
Isometric, diametric and trimetric projections. In isometric projections, the direction of
projectionofmakes equalmakes
angles with the three principal axes. In diametric projection, the
direction projection equal angles with only two principal axes. While in trimetric
projecion, the direction of projection makes unequal angles with the three principal axes Fig. 4.36.
Computer Aided Design
We get,
Chapter
(where d= n, Xo n Yo + ng 20). Substituting the value
equation, we get of x, y1 and z, in the
5
aboya
n kx +
n Ry *
ng Rz =
do
This implies
k = -
n, +n2y + n^2
The perspective transformation between the object and the image of non-linear.
we cannot represent it by 3 x 3 transformation matrix. Making use of
homogeneous
Thus AUTOMATION AND
coordinates representation we can write 4 4
x
perspective transformation matrix as
d0 0 0 NUMERICAL CONTROL
0 d 0 0
per 0 0 d 0
n 0 OVERVIEW
in this chapter we shali learn .
Defination and role played by CAM. Automation, its necessity, advantages and
EXERCISE disadvantages. Numerical control, its need, suitability, historical developments and
future trends. Basic components of NC machines. Various classifications of NC
1. () Write down the name of two basic approaches systems. Coordinate system used in various NC machines.Limitations of NC
that are generally used to build the
model from solid machines. Comparison of ordinary and NC machine tools. Some methods of
graphics primitives.
improving accuracy. Direct numerical control. Computer numerical control and its
(i) State the concept of hidden line removal and shading. Explain both.
features. Adaptive control. Manual part programming of turning, drilling and miling
(in) State the limitations to the models which use the wireframe approach to form the operations. Computer aided part programming using APT programming language
image
Draw a schematic diagram and
explain the working of colour monitor display device.
Also explain RGB and CMY colour models.
3. Briefly explain 5.1 INTRODUCTION TO cOMPUTER AIDED MANUFACTURING (CAM)
() Superquadric surfaces and
Computer-Aided Manufacturing (CAM) is the use of computer software and hardware in
()Blobbyobjects the translation of computer-aided design models into manufacturing instructions for numerical
4. Find the equation (u) of a Hermite cubic spline that passes through points (1, 2) and controlled machine tools. Computer-aided manufacturing (CAM) commonly refers to the
of numerical control (NC) computer software applications to create detailed instructions
(3. 4) and whose tangent vectors are the two lines connecting these two points with Use
point (2, 7) (code) that drive computer numerically controlled (CNC) machine tools for manufacturing
parts. Manufacturers in a variety of industries depend on the capabilites of CAM to produce
5. Explain the Bezier curves and write its importance and properties. Derive a cubic Bezier
curve parametric equation. high-quality parts
A broader perspective of CAM can inciude the use of computer applications to define a
6. What do you understand by Boolean operations in CGS method of solid modeling?
manufacturing plan for tooling design, computer-aided design (CAD) model preparation, NC
Explain with the help of suitable examples. Desirable how union of two planes is
oblained ? programming, coordinate measuring machine (CMM) inspection programming. machine tool
Simulation, or post-processing. The plan is then executed in a production environment, such
as direct numerical control (DNC), tool management, CNC machining. or CMM execution