Cad Notes Modulewise
Cad Notes Modulewise
es
ot
hn
ec
M
Prepared by
Hemanth Kumar. R
Assistant Professor
SMVEC
Contents
MODULES .................................................................................................................................. iv
SYLLABUS .................................................................................................................................. v
UNIT – I ........................................................................................................................................... 1
INTRODUCTION TO CAD......................................................................................................... 1
Design Process: ......................................................................................................................... 1
MORPHOLOGY OF DESIGN................................................................................................. 3
Design Models .......................................................................................................................... 5
Concurrent engineering:.......................................................................................................... 12
CAD system architecture: ....................................................................................................... 16
DISPLAY DEVICES: ............................................................................................................. 23
es
UNIT - II ........................................................................................................................................ 28
ot
BRESENHAM’S ALGORITHM ............................................................... 28
hn
WINDOWING ........................................................................................................................ 37
VIEW PORT ........................................................................................................................... 37
CLIPPING............................................................................................................................... 38
HIDDEN SURFACE REMOVAL ......................................................................................... 38
2-D & 3-D TRANSFORMATION ............................................................................................. 39
2-D TRANSFORMATIONS .................................................................................................. 39
3-D TRANSFORMATIONS .................................................................................................. 46
PROJECTIONS .......................................................................................................................... 47
PARALLEL (ORTHOGONAL) PROJECTION .................................................................... 47
PERSPECTIVE PROJECTION.............................................................................................. 47
ISOMETRIC PROJECTION .................................................................................................. 49
Unit – IV......................................................................................................................................... 80
es
VISUAL REALISM & MODELING SOFTWARES ................................................................ 80
ot
VISUAL REALISM ............................................................................................................... 80
HIDDEN LINE REMOVAL .................................................................................................. 82
hn
Shading ................................................................................................................................... 93
COLOURING ......................................................................................................................... 94
COMPUTER ANIMATION ................................................................................................... 99
Parametric and variational modeling ........................................................................................ 100
Feature based modeling ........................................................................................................ 101
Behavior Modeling ............................................................................................................... 102
Overview of Modeling Softwares: ........................................................................................ 103
PRO-E ................................................................................................................................... 103
CATIA .................................................................................................................................. 105
Demo on CATIA V6 Software ............................................................................................. 105
5. Design of Surfaces
6. Features of Surface Modeling Package - Solid Primitives,
ec
CSG, B-rep and description of other modeling techniques like Pure primitive
7.
instancing, cell decomposition,
M
UNIT – I
Design process - Morphology of design, Types of design models, Application of design models,
concurrent Engineering – CAD system architecture. CAD Hardware: workstation – CPU, mass
storage, input devices (keyboard, light pen, thumb wheel joy stick, mouse, digitizer etc.,) and
output devices (printers, plotters) Display Devices: storage tube – raster scan, vector refresh,
plasma panel and LCD. (09 hours)
UNIT – II
Bresenham’s line and circle algorithms. Transformation in Graphics: co-ordinate system used in
Graphics and windowing and view port transformations, Clipping, hidden line elimination, 2D
transformations – rotation, scaling, translation, mirror, reflection and shear – homogeneous
transformations – concatenation, 3D Transformation – orthographic and Perspective Projections.
(09 hours)
UNIT – III
Classification of Geometric Modeling – Wire frame, Surface and Solid Modeling, applications –
representation of curves and surfaces – Parametric form – Design of curved shapes- Cubic
es
spline –Bezier curve – B-spline – Design of Surfaces – features of Surface Modeling Package –
Solid Primitives, CSG, B-rep and description of other modeling techniques like Pure primitive
instancing, cell decomposition, spatial occupancy enumeration, Boolean Operations (join, cut,
ot
intersection), Creating 3D objects from 2D profiles (extrusion, revolving etc) (09 hours)
hn
UNIT – IV
Hidden line-surface-solid removal algorithm- shading- colouring- animation.
ec
Parametric and variational modeling, Feature based modeling, An overview of modeling software
like PRO-E, CATIA, IDEAS, SOLID EDGE and other advanced Softwares. (09 hours)
M
UNIT – V
Standards for computer graphics (GKS) and Data exchange standards – IGES, STEP. Standard
for exchange images (open GL) Data structures for Entity storage – Data structures for interactive
modelling- Relational databases (09 hours)
TEXT BOOKS:
1. Chris Mcmahon and Jimmie Browne - CAD/CAM – Principle Practice and Manufacturing
Management, 2nd Edition, Addison Wesley England, 2000.
2. Sadhu Singh - Computer Aided Design and Manufacturing, II Edition, Khanna Publishers,
New Delhi, 2008.
REFERENCE BOOKS:
1. P.Radhakrishnan et al - CAD/CAM/CIM, New Age International P Ltd., New Delhi, 2006.
3. Ibrahim Zeid - CAD/CAM Theory and Practice, Tata McGraw Hill Publishing Co. Ltd., New
Delhi, 2005.
E-LEARNING SOURCES:
1. www.nptel.iitm.ac.in
2. https://sites.google.com/site/rhkmech/smvec.
MODULE - 1
INTRODUCTION TO CAD
Computer Aided Design (CAD) is assistance of computer in engineering processes such
as creation, optimization, analysis and modifications.
CAD involves creating computer models defined by geometrical parameters which can be
readily altered by changing relevant parameters. CAD systems enable designers to view objects
under a wide variety of representations and to test these objects by simulating real-world
conditions.
It is an integration of Mechanical and Computer technology to aid in the design process like
Modelling, Assembly, Drafting, Die Design, Tool Design, Sheet metal, analysis of products.
es
ot
hn
CAD software packages provide the designer with a multi window environment with animation
which is regularly used in Digital Content Creation. The animations using wire frame modelling
ec
helps the designer to see into the interior of object and to observe the behaviors of the inner
components of the assembly during the motion.
M
DESIGN PROCESS:
Design Process is a series of steps that engineers follow to come up with a solution to a
problem. The design of any component includes two things,
Product design - development of specification for a product
Process design - developing methods of manufacture of the products
Product Development and Manufacture:
Machines involved – Computers
Tasks – information processing
Use – assist in the definition and processing of information connected with design of products
Uses of CAD
CAD - designers - view objects variety of representations - test & simulating real-world
conditions.
Aid - design process like Modelling, Assembly, Drafting, Die Design, Tool Design, Sheet
metal, analysis of products.
es
ot
hn
ec
In recent years there have been several attempts to provide a formal description of these
stages or elements of the design process. Some variation in these descriptions, both in
M
terminology and in detail, but in general the agree that design progress in a step – by – step
manner from some statement of need through identification of the problem , a search for solution
and development of the chosen solution to manufacture, test and use. These descriptions of
design are often called models of the design process.
es
ot
hn
ec
M
In this model the design process is described by a flow diagram comprising four main phases
which may be summarized as:
form in which models of design are developed through a process of analysis and
evaluation leading to modification and refinement of the model.
ec
In the early stage the tentative solution is proposed by designer. In this stage the design
refined and evolution and modification repeated at a greater level of detail.
M
Preliminary Ideas
Problem Refinement
Analysis
Decision
Implementation
1. Problem identification: need to gather data of several types: Fixed data, opinion surveys,
historical records, personal observations, experimental data and physical measurements and
characteristics as shown in Fig. below. Problem identification can be of two general types: (i)
es
Identification of a need or (ii) Identification of design criteria.
ot
hn
ec
M
MODULE - 5
ec
CONCURRENT ENGINEERING:
M
es
ot
Cash Flow after implementing Concurrent Engineering Technique
hn
ec
M
es
ot
hn
ec
M
Concurrency implies that members of the multidisciplinary project team work in parallel.
This also means that there is no strict demarcation of jobs among various departments. The
multi-disciplinary approach has the advantage of several inputs which can be focused effectively
early in the design process. Presently engineering departments are practicing this approach but
still with a high degree of manual involvement and redundancy.
es
Hardware: the computer and associated peripheral equipment
Software: the computer programs running on the hardware
ot
Data: the data structure created and manipulated by the software:
hn
hardware. The software normally comprises a number of different elements or functions that
process the data stored in the database in different ways. Those elements or functions are:
M
Model definition: for example, to add geometric elements to a model of the form of a
component;
Model manipulation: to move, copy, delete, edit or otherwise modify elements in design
models;
Picture generation: to generate images of the design model on a computer screen or on
some hard-copy device;
User interaction: to handle commands input by user and to present output to the user
about the operation of the system;
Database management: for the management of the files that make up the database;
Application: these elements of the software do not modify the design model, but use it to
generate information for evaluation, analysis or manufacture;
Utilities: a ‘catch-all’ term for parts of the software that do not directly affect the design
model, but modify the operation of the system in some way (e.g to set the color to be used
for display, or the units to be used for construction of a part model).
These features may be provided by multiple programs operating on a common database or
by a single program encompassing all of these elements.
es
ot
hn
ec
M
Control Unit:
The control unit is basically acts as an administrator in a computer. It coordinates the
operations of all other components. It controls the input and output of information between the
computer and the outside world through I/O devices, synchronizes the transfer of signals
between the various sections of the computer and regulates the other section to perform their
individual functions. The capability of the control unit to accomplish these operations is provided
by a set of instructions called executive program, which is stored in memory.
Arithmetic Logic unit
The ALU provides the circuitry required to perform the various calculations and
manipulations of data. Most ALU’s can add and subtract, but there are now some ALU’s that are
capable of performing multifunction and division and even other complex mathematical functions.
ALU’s with simplex circuits are capable of being programmed to perform these more complicated
operations, but more computing time is required. The more complex arithmetic logic units are
faster, but these units are more costly.
It is most suitable for applications, which may be required in payroll, personnel management,
inventory control and customer invoicing where a large amount of data is to be processed
ec
sequentially.
2) Magnetic Disc Storage
M
Magnetic disk storage is also known as a random access storage device. The storage
medium is a magnetically coated disk. There are several types and sizes of disks each best
suited to a particular set of applications.
3) Floppy Disc
Floppy disks come in two standard sizes: the larger one is 8 inches in diameter and
smaller is 5 ¼ inches and is referred to as mini floppy.
4) Magnetic Drum Storage
The magnetic drum is direct access storage device with high capacity and high access
rates. The magnetic drum consists of a magnetically coated cylinder during operation.
The drum is rotated at a constant speed and data are recorded in the form of magnetized
spots. The drum can be read repeatedly without causing data loss.
Mouse
Mouse is today one of the widely used input devices in graphics applications. Mouse can
be moved around by the operator on any flat surface to provide graphic input. Its ability to rapidly
position the cursor on the screen is its most important advantage. Mouse is available as a
mechanical or optical graphic input device. In the case of a mechanical mouse, the rolling ball at
the bottoms of the mouse causes two encoders to rotate. The movement of the mouse is thus
converted into pulses which move the cursor in the X and Y direction in proportion to the
movement of the mouse. Mouse can be operated in a limited space. Since the mouse can be
used without looking at it, the user can concentrate on the screen and hence design productivity
can be considerably increased.
Thumb wheel
Thumb wheels are potentiometric devices. Two of them are provided for X and Y
movements of cursor. These also have the advantage that one can look at the screen and move
the cursor.
Joy stick
es
Joystick is a potentiometric device that contains sets of variable resistors which feed
signals that indicates the device position to the computer. These devices rely on the operator’s
ot
sense of touch and hand-eye co-ordination to control the position of the cursor on the screen.
hn
Joystick devices are normally set so that side-to-side movement produces change in X Co-
ordinates and front to back movements produce change in Y Co-ordinates.
ec
M
Digitizer
Digitizer boards or tablets are electro-mechanical vector graphic input devices that
resemble a drafting board. These are used together with a movable stylus or reticule called a
cursor or a puck. They are used to enter drawings into computer graphics systems by taping the
drawing to the surface of the digitizing board and placing the cursor over points whose co-
ordinates are to be entered. Figure shows a digitizer.
OUTPUT DEVICES
es
A CAD system is not complete unless it can make hard copies of designs or analysis
ot
created on the computer. Determining the best output device for a typical CIM application is a
three-step process: specifying how hard copies will be used, identifying quality and cost criteria
hn
and presentations. Design iterations can be reduced by making hard copies at crucial stages and
M
distributing them to key personnel for review. Documents and drawings are required for archival
purposes, to be used in proposals, reports, as well as illustrations. Quality of the hard copy
depends on the resolution of the hard copy unit. Speed and frequency of operation of hard copy
equipment are also of importance.
Printers
Plotters
PLOTTERS
Plotters are classified based several factors. Depending on the maximum size of the
drawing plotters are designated as A0, A1, A2, A3 and A4. There are plotters capable of creating
drawings larger than A0 size. Generally plotters plot drawings on cut sheets. Some special
plotters are capable of creating drawings on rolls also. Drawings are created through a series of
short vectors which requires movement to the pen in X and Y direction.
Plotters can be classified on the basis of their construction. A flat bed plotter has the pen
moving on a flat surface on which the drawing paper is fixed. The linear movements in the X and
Y direction generate the required drawing. In the case of a drum plotter, the paper is wound
around on a cylindrical drum. The pen holder is attached to a moving slide.
es
PRINTERS
ot
Several types of printers are available:
hn
(i) Impact printers: They use small hammers or print heads containing small pins to strike a
ribbon to form dot matrix images. Colors are introduced through the use of multiple ribbons or
ec
single ribbons with different color bands. Color intensity is fixed and creating shades is almost
impossible. Because of the low resolution, copy quality is poor. Impact printers are suitable for
M
2. In the second a liquid crystal display (LCD) and light emitting diodes (LEDs) are used to
generate images
ec
3. The plasma display uses small neon bulbs arranged in a panel which provides a medium
resolution display.
M
Thus far, none of these display technologies has been able to displace the CRT as the dominant
graphics display device.
CATHODE RAYS TUBE:
The operation of CRT is based on the concept of energizing an electron beam that strikes
the phosphor coating at very high speed. The energy transfer from the electron to the phosphor
due to the impact causes it to illuminate and glow.
The electrons are generated via the electron gun that contains the cathode and focused
into a beam via the focusing unit shown in figure. By controlling the beam direction and intensity
in a way related to the graphics information generated in the computer, meaningful and desired
graphics can be displayed on the screen.
The graphics display can be divided into two types based on the scan technology used to
control the electron beam.
Random Scan
Raster Scan
es
ot
hn
ec
M
Changes made to the display file by the software must be synchronized with the display
refresh cycle to prevent the display of an incomplete picture. If the software updates the file fast
enough, then it is possible to use the dynamic techniques such as animation to simulate
movements as well as developing responsive user interfaces.
The principal advantage to refresh displays is its high resolution (4096 x 4096) and thus
its generation of high quality pictures. However, the need to refresh the picture places a limit on
the number of vectors that can be displayed without flicker
In addition, being a binary display, the refresh display is able to generate only two level of
color intensity. In some displays, the intensity of the electron beam can vary to provide better
color capabilities.
es
ot
hn
It also uses a special type of phosphor that has a long – lasting glowing effect. The
ec
phosphor is embedded in a storage tube. In addition, the speed of the electron beam in the DVST
M
Working:
Images are displayed by converting geometric information into pixel values which then
ec
converted into electron beam deflection through display processor and deflection system. If the
M
display is monochrome, the pixel value is used to control the intensity level or the gray level on
the screen. For color displays, the value is used to control the color mapping into a color map.
The creation of transfer format data from geometric information is known as scan
conversion or rasterization. A rasterizer that forms the mage-creation system is mainly a set of
scan conversion algorithms. Due to the universal need for these algorithms, the scan conversion
or rasterization process is implemented.
MODULE – 1
BRESENHAM’S ALGORITHM
BRESENHAM’S LINE ALGORITHM
Bresenham’s algorithm enables the selection of optimum raster locations to represent a
straight line. In this algorithm either pixels along X or Y directions are incremented by one unit
depending upon the slope of the line. The increment in the other direction is determined by
examining the error or distance between actual line location and the nearest grid locations.
The principle of Bresenham’s algorithm can be explained with the aid of Fig a. If the slope
of the line (in the first octant) is more than 1/2, the pixel point in the Y direction is shifted by one.
Thus lines L1 and L2 passes through pixel (0, 0). For line L2 slope is greater than 1/2; hence the
pixel point is (1, 1) whereas for L1 the slope is less than 1/2 and hence (1, 0) is the pixel point.
Bresenham’s algorithm selects optimum raster locations with minimum computation. To
accomplish this, the algorithm always increments by one unit in either X or Y depending upon the
slope of the line. The increment in the other variable either zero or one is determined by
examining the distance (error) between the actual line location and the nearest grid location. Only
es
the sign of this error needs be examined.
Consider the line of slope m = 0.4 and passing through (0, 0) in Fig (a). The error team e
ot
is initialized to –1/2. The next raster point can be determined by adding the slope (m) to the error
hn
term.
i.e. e=e+m
ec
the same horizontal level i.e., (0, 1). For the next location X is incremented to 2. Error e = -0.1 +
0.4 = 0.3. Since e is positive the line passes above the middle of the raster line. Hence the
location of pixel is (2, 1). Before examining the next pixel location the error term has to be re-
initialized as its value is positive. Re-initialization is done by subtracting one from the current e
value. Hence e = 0.3 - 1 = -0.7. Adding the slope 0.4 we get e = -0.3. Table 3.2 shows the
computed values and the location of pixels. A plot of the pixel location is shown in Fig. (b).
Table: Calculation of Pixel Position
plotx is x1
ploty is y1 (the beginning of line)
ec
x starts at 0
y starts at 0
M
plot x = x1 ;
ec
plot y = y1 ;
for (i = 0 ; i <inc ; i ++)
M
{
x + = ix ;
y + iy ;
plot = 0
if (x > inc)
{
plot = 1 ;
x – = inc ;
if (dx < 0)
plot x – = 1 ;
else
plotx + = 1 ;
}
if (y > inc)
{
plot = 1 ;
y – = inc ;
MODULE - 2
BRESENHAM’S CIRCLE ALGORITHM
An efficient algorithm for generating a circle has been developed by J. Bresenham.
Values of a circle centered at the origin are computed in the sector X = 0 to X = R /2 where R is
the radius of the circle. The symmetry of the circle is used to obtain the pixels corresponding to
es
other sectors.
Bresenham’s circle algorithm can be explained as follows:
ot
Consider an origin-centred circle. The algorithm begins at X = 0 and Y = R. In the first
hn
quadrant of the circle, Y is a monotonically decreasing function of X. Referring to Fig., (Xi, Yi) is a
point on the circle. For clockwise generation of the circle there are only three possible selections
ec
of the next pixel, which represents the circle. These positions are also shown in Fig. 3.4. The
algorithm is designed to choose the pixel which minimizes the square of the distance between
M
one of these pixels and the true circle, i.e., the minimum of
H = [ (Xi + 1) 2 + (Yi)2 – R 2]
V = [ (Xi ) 2 + ( Yi – 1) 2 – R 2 ]
D = [ ( Xi + 1) 2 + ( Yi – 1 ) 2 – R 2 ]
if (d < 0)
d+=4*x+6;
M
else
{
d + = 4 * (X – Y) + 10 ;
y-:
}
x++ ;
if (x = = y)
symmetry (x, y, xc, yc) ;
}
getch ( ) ;
closegraph ( ) ;
}
}
M
es
ot
hn
ec
M
object in the hierarchy is relative to its parent in the hierarchy scheme, rather than to the world
coordinate system. For example, a hand may be positioned relative to an arm, and the arm
relative to the torso. When the arm moves, the hand moves with it, and when the torso moves, all
M
es
ot
hn
ec
VIEW PORT
M
es
ot
MODULE - 4
hn
One of the difficult problems in computer graphics is the removal of hidden surfaces from
the images of solid objects. In Fig. (a) An opaque cube is shown in wire frame representation.
M
Edges 15, 48, 37, 14, 12, 23, 58 and 87 are visible whereas edges 56, 67 and 26 are not visible.
Correspondingly, surfaces 1265, 2673 and 5678 are not visible since the object is opaque. The
actual representation of the cube must be as shown in Fig. (b).
There are a number of algorithms available for removal of hidden lines and hidden surfaces.
Table gives a list of algorithms for hidden line removal and hidden surface removal.
There are two popular approaches to hidden surface removal. These are scan line based
systems and Z-buffer based systems. Other important approaches are area subdivision and
depth list schemes.
MODULE - 5
es
ot
2-D & 3-D TRANSFORMATION
hn
2-D TRANSFORMATIONS
In computer graphics, drawings are created by a series of primitives which are
ec
represented by the co-ordinates of their end points. Certain changes in these drawings can be
made by performing some mathematical operations on these co-ordinates. The basic
M
MODULE - 6
TRANSLATION
es
Moving drawing or model across the screen is called translation. This is accomplished by adding
ot
to the co-ordinates of each corner point the distance through which the drawing is to be moved
hn
(translated). Fig. shows a rectangle (Fig.(a)) being moved to a new position (Fig.(b)) by adding 40
units to X co-ordinate values and 30 units to Y coordinate values. In general, in order to translate
ec
Y1 = Y + TY
SHEARING
A shearing transformation produces distortion of an object or an entire image. There are two
types of shears: X-shear and Y-shear. A Y-shear transforms the point (X, Y) to the point (X1, Y1)
by a factor Sh1, where
X1 = X
es
ot
hn
ec
M
REFLECTION
Shading is an important element in 3-D computer graphics, as it gives the necessary
realism to the representation of the object. Fig. shows what happens when light is incident on a
surface. Light gets partly reflected, partly scattered, partly absorbed and partly transmitted. The
relative magnitudes of these are influenced by many factors like the opaqueness of the solid,
surface texture etc. The intensity and wave length of light reflected from a surface depends on
the incident angle, the surface roughness, incident wave length and the electrical properties of
the surface. In computer graphics designer can model reflected light and transmitted light.
the reflection of the surface due to glossiness. Consider Fig. which shows the reflection of light
on a surface. If the surface is perfectly glossy the reflected light is in the direction of R. If the
ec
surface becomes more and more matt, the reflection intensity varies as in a profile shown as the
shaded area of the figure.
M
A technique to model reflection from an object based on specular reflection has been proposed
by Phong. This model assumes that:
• Light sources are point sources.
• All geometry except the surface normal is ignored.
• Diffuse and specular components are modeled as local components
• The model to simulate the specular term is empirical.
• The color of specular reflection is that of the light source
• The ambient lighting is constant.
Translation:
es
ot
hn
ec
M
es
ot
Sequences of transformations can be combined into a single transformation using the
concatenation process. For example, consider the rotation of a line about an arbitrary point. Line
hn
AB is to be rotated through 45° in anticlockwise direction about point A (Fig (a)). Fig. (b) Shows
an inverse translation of AB to A1B1. A1B1 is then rotated through 45° to A2B2. The line A2B2 is
ec
Since matrix operations are not commutative, care must be taken to preserve the order in which
they are performed while combining the matrices.
es
ot
hn
ec
M
es
ot
hn
ec
M
PERSPECTIVE PROJECTION
The perspective projection enhances the realism of displayed image by providing the
viewer with a sense of depth. Portions of the object farther away from the viewer are drawn
smaller than those in the foreground. This is more realistic as it is the way we see an object. In
perspective projection the projections connect the eye with every point of the object and therefore
all projections converge to the eye.
This projection is called orthographic. The orthographic projection is a special form of the
parallel projection by which parallel lines of the three-dimensional object are transformed into
parallel lines of its image.
es
ot
hn
ec
M
MODULE - 1
GEOMETRIC MODELLING
Geometric modeling techniques like wire frame, surface and solid modeling have totally
changed not only the drawing office practices but also have helped to integrate design with
analysis, simulation and optimization as well as to seamlessly integrate design with downstream
manufacturing applications. Data created in geometric models can thus be directly passed on to
all the application software packages like finite element analysis, mechanism analysis, CNC
programming, inspection etc. Geometric modeling has therefore paved the way for CIM. The
salient features of the different modeling techniques are discussed in this chapter. The starting
point of new product development is conceptual design. The designer has to develop the shape
of the product which in turn has to accommodate the functional parts inside. Whether it is a
consumer durable like a camera, and an electric iron, a washing machine, an automobile, an
entertainment electronic item like television or a sports item like a golf club, shape design is a
critical activity in product design. This chapter also discusses conceptual design techniques and
transfer of data to modeling software. es
INTRODUCTION
Product development activity starts with the design of the product. As mentioned in
ot
Chapter 2 this is a very critical activity which will influence the cost, performance, service life,
hn
quality, manufacturability, maintainability etc. The challenges before the product designers today
are listed below:
ec
• Need for global collaboration across and beyond the enterprise among designers,
customers and vendors to reduce development lead times
• Need to evaluate feasibility throughout the design process
• Ability to react quickly to design changes as and when change requests are made
• Ability to express the design intent in terms of shape and function using the tools
available as well as the ability of the tools to transfer data back and forth seamlessly.
Manufacturing of machine parts and components is carried out with the help of drawings.
The machine operator is provided with the drawing of the finished part and an operation sheet
which gives step by step instructions to produce the part. Drawings are also required for process
planning, tool design, production planning, and CNC programming, inspection, assembly, costing
and vendor development. Thus, drawings are essential documents for product development as
well as for regular production. However, with the introduction of computer integrated
manufacturing the importance of drawing as the basic document for product development and
manufacture has diminished. In addition to production drawings of components, the design
department has to create layout drawings, assembly drawings, and tool drawings (Jigs, fixtures,
templates, special tools, inspection fixtures etc). The number of drawings required for a product
es
ot
hn
ec
M
es
ot
hn
ec
M
Ends (vertices) of lines are represented by their X Ends of lines are represented by their X, Y
and Y coordinates and Z coordinates.
Curved edges are represented by circles, ellipses, Curved surfaces are represented by suitably
splines etc. Additional views and sectional views are spaced generators. Hidden line or hidden
necessary to represent a complex object with clarity. surface elimination is a must to interpret
3-D image reconstruction is tedious. complex components correctly.
Uses only one global coordinate system 2-D views as well as various pictorial views
can be generated easily.
May require the use of several user
coordinate systems to create features on
different faces of the component.
es
ot
hn
Apart from standard surface types available for surface modeling (box, pyramid, wedge,
ec
dome, sphere, cone, torus, dish and mesh) techniques are available for interactive modeling and
editing of curved surface geometry. Surfaces can be created through an assembly of polygonal
M
meshes or using advanced curve and surface modeling techniques like B-splines or NURBS
(Non-Uniform Rational B-splines). Standard primitives used in a typical surface modeling
software are shown in Fig.. Tabulated surfaces, ruled surfaces and edge surfaces and revolved
are simple ways in which curved geometry could be created and edited. Surface modeling is
discussed in detail later in this chapter.
vi. Constructive Solid Geometry (CSG): Primitive instances are combined using Boolean
ec
three techniques:
i. Constructive solid geometry (CSG or C-Rep)
ii. Boundary representation (B-Rep)
iii. Hybrid method which is a combination of B-Rep and CSG.
Constructive Solid Geometry (CSG)
In a CSG model, physical objects are created by combining basic elementary shapes
known as primitives like blocks, cylinders, cones, pyramids and spheres. The Boolean operations
like union (∪), difference (–
us assume that we are using two primitives, a block and a cylinder which are located in space as
shown in Fig.
A “union” operation (A∪B) will combine the two to convert them into a new solid. (Fig.(c))
The difference operation (A – B) will create a block with a hole (Fig. (D)). an intersection
operation (A ∩B) will yield the portion common to the two primitives. (Fig. (E)).
Boundary Representation
Boundary representation is built on the concept that a physical object is enclosed by a set
of faces which themselves are closed and orient able surfaces. Fig. Shows a B-rep model of an
object. In this model, face is bounded by edges and each edge is bounded by vertices. The
entities which constitute a B-rep model are:
Geometric entities Topological entities
Point Vertex
Curve, line Edge
Surface Face
part, but also the part’s internal structure. A solid model allows the designer to determine
information like the object’s mass properties, interferences, and internal cross sections. Solid
ec
models differ from wire frame and surface models in the kind of geometric information they
provide. Wire frame models only show the edge geometry of an object. They say nothing about
M
what is inside an object. Surface models provide surface information, but they too lack
information about an object’s internal structure. Solid models provide complete geometric
descriptions of objects.
Engineers use solid models in different ways at different stages of the design process.
They can modify a design as they develop it. Since computer-based solid models are a lot easier
to change and manipulate than the physical mock-ups or prototypes, more design iterations and
modifications can be easily carried out as a part of the design process. Using solid modeling
techniques a design engineer can modify a design several times while optimizing geometry. This
means that designers can produce more finished designs in less time than by using traditional
design methods or 2-D CAD drafting tools.
Solid models can be used for quick and reliable design analysis. Solid models apart from
geometric information provide important data such as volume, mass, mass properties and centre
of gravity. The designer can also export models created to other applications for finite element
analysis (FEA), rapid prototyping and other special engineering applications.
Finally designers can generate detailed production drawings directly from the solid model. This
capability increases design productivity considerably. Another important feature of solid modeling
Similarly, if a flanged part shown in Fig. (A) is to be created, the one approach is to sketch the
cross section as shown in Fig. (B) and then revolve through 360°.
es
ot
hn
MODULE - 2
ec
M
Curve will pass near control points may interpolate the start and end points.
Interpolation Approximation
One of the popular methods of interpolation is to use the Lagrange polynomial, which is the
unique polynomial of degree n passing through n + 1 points. However, Lagrange polynomial is
unsuitable in modeling of curves because of:
i. Large number of computations involved and
ii. Tendency for the curve to oscillate between data points when the data points are large.
Another approach is to look for a polynomial of fewer degrees than W passing through these W +
1 data points. This is done by combining polynomials of lesser degree passing through several
consecutive data points and smoothly piecing several such curve segments together by blending.
In general, the modeling of curves is done to satisfy the following:
i. Axis independence
ii. Global and local control
iii. Smoothness of curves
iv. Versatility
These four conditions require a polynomial degree of at least 3. The derivations of cubic splines
ec
for x, y and z are similar. The difference will be only in the end point coordinates and derivatives
at the end points. Therefore only the derivation of x(u) is considered here.
M
Let x(0), x(1), x’(0) and x’(1) are the end points and the derivatives at the end points respectively.
Since x(u) = au3 + bu2 + cu + d, we get
x (0) = d
x (1) = a + b + c + d
x’(0) = c
x’(1) = 3a + 2b + c
The above equations can be solved to obtain the four equations given below:
a = 2X(0) – 2X(1) + X’(0) + X’(1)
b = –3X(0) + 3X(1) – 2X’(0) – X’(1)
c = X’(0)
d = X(0)
es
ot
hn
The advantages of Bezier curve over cubic spline is that the direction of the curve at the
ec
joints can be defined and changed simply by specifying the position of the second and third data
points. Changing a control point not only affects the shape of the curve near the control point but
M
has an influence throughout the curve. This lack of local control is a major weakness of Bezier
curve. Fig. shows Bezier cubic segments for two sets of values of X.
es
ot
hn
ec
M
When the control points are distinct, this curve is continuous in slope and in curvature
between successive segments but it does not pass through any of the intermediate control points.
The cubic β-spline has the advantage that the control points may be moved without affecting
slope and curvature continuity and only four spans of the overall curve will be affected by the
change. Moreover, by allowing two control points to coincide it is possible to create a curvature
discontinuity. A slope discontinuity, similarly, can be introduced by choosing three successive
control points to be coincident.
It is possible to represent complex curve shapes by considering composite curves constructed
from individual segments, in the case of cubic spline, Bezier and B-spline techniques.
es
ot
hn
Wi associated with each control point is called a weight and can be viewed as an extra shape
ec
parameter. Wi affects the curve only locally and can be interpreted geometrically as a coupling
M
The vector coefficients are given by a 4 × 4 matrix of position vectors for sixteen points forming a
characteristic polyhedron. Fig. shows the characteristic polyhedron for a Bezier surface. The four
M
corner points R (0,0), R (3,0), R (3,3) and R (0,3) lie at the corners of the surface patch itself
whereas remaining points do not lie on the patch. The four points along each edge of the
polyhedron define the four edge curves of the patch. The four interior points determine the cross
derivatives at the corner and cross slopes along the nearest edges to them.
The surfaces patches described above cover a rectangular domain in u-v space. There are also
methods proposed for interpolation on triangular and pentagonal domains.
MODULE - 5
SURFACE MODELING
es
All physical objects are 3-dimensional. In a number of cases, it is sufficient to describe the
boundary of a solid object in order to specify its shape without ambiguity. This fact is illustrated in
ot
Fig.. The boundary is a collection of faces forming a closed surface. The space is divided into two
parts by the boundary - one part containing the points that lie inside and forming the object and
hn
the other the environment in which the object is placed. The boundary of a solid object may
ec
consist of surfaces which are bounded by straight lines and curves, either singly or in
combination.
M
Figure is typical of several components, one comes across in engineering. The surface of
this component can be produced by revolving a profile about an axis of rotation. A surface model
is defined in terms of points, lines and faces. This type of modeling is superior to wire frame
modeling discussed earlier in this chapter. A major advantage of surface modeling is its ability to
differentiate flat and curved surfaces. In graphics, this helps to create shaded image of the
product. In manufacture, surface model helps to generate the NC tool path for complex shaped
components that are encountered in aerospace structures, dies and moulds and automobile body
panels.
Modeling of curves and surfaces is essential to describe objects that are encountered in several
areas of mechanical engineering design. Curves and surfaces are the basic building blocks in the
ec
following designs:
i. Body panels of passenger cars
M
ii. Aircraft bulk heads and other fuselage structures, slats, flaps, wings etc.
iii. Marine structures
iv. Consumer products like plastic containers, telephones etc.
v. Engineering products like mixed flow impellers, foundry patterns etc A curve has one degree of
freedom while a surface has two degrees of freedom. This means that a point on a curve can be
moved in only one independent direction while on surfaces it has two independent directions to
move. This is shown in Fig.
v. Rev surf: A surface of revolution is created by rotating a path curve or profileabout an axis. The
rotation can be through 360 degrees or part of it.
vi. Edge surf: This command constructs a Coon’s surface patch using four adjoining curved
edges, an example of edge surf commands is shown in Fig.
Pro Desktop
The solid primitives can be accessed from a Palette of Base Shapes that can be dragged into a
drawing and edited to create a model.
Union
Intersection: Portion common to
Merger of two objects into one Difference: Subtraction of one
both objects
object from another
Combining these elementary operations, it is possible to build up objects with high complexity
starting from simple ones.
Applications of CSG
Constructive solid geometry has a number of practical uses. It is used in cases where simple
geometric objects are desired, or where mathematical accuracy is important. The Quake engine
and Unreal engine both use this system, as does Hammer (the native Source engine level editor),
and Torque Game Engine/Torque Game Engine Advanced. CSG is popular because a modeler
can use a set of relatively simple objects to create very complicated geometry. When CSG is
procedural or parametric, the user can revise their complex geometry by changing the position of
objects or by changing the Boolean operation used to combine those objects.
A topological entity “lies on” a geometric entity, which is its geometrical support
Complete hierarchical model
Cell Decomposing:
This scheme follows from the combinatoric (algebraic topological) descriptions of solids
detailed above. A solid can be represented by its decomposition into several cells. Spatial
occupancy enumeration schemes are a particular case of cell decompositions where all the cells
are cubical and lie in a regular grid. Cell decompositions provide convenient ways for computing
certain topological properties of solids such as its connectedness (number of pieces) and genus
(number of holes).
Cell decompositions in the form of triangulations are the representations used in 3d finite
elements for the numerical solution of partial differential equations. Other cell decompositions
such as a Whitney regular stratification or Morse decompositions may be used for applications in
robot motion planning.
Spatial occupancy enumeration:
This scheme is essentially a list of spatial cells occupied by the solid. The cells, also
called voxels are cubes of a fixed size and are arranged in a fixed spatial grid (other polyhedral
Boolean operations:
Boolean operations are used to make more complicated shapes by combining simpler
shapes.
Three types of operations are possible
Union (‘’) or join
Intersection (‘’)
Difference (‘-‘) or subtract or cut
Union or Join:
Two or more solids combined to form a single solid.
MODULE - 9 es
CREATING 3D OBJECTS FROM 2D PROFILES:
ot
Creating Solids
Many 3D solids can be created by extruding, rotating or lofting 2D profiles. Other basic
hn
solids such as cylinders, boxes, cones or pyramids can be defined by entering dimensions.
Nearly all mechanical parts are comprised of basic solids, which can be joined and/or trimmed.
ec
Combining and subtracting solids are called Boolean operations, and resulting solids are called
“Boolean Trees.” Vari CAD provides tools to add solids and to use one solid to cut another, either
M
keeping or deleting the cutting solid. Commonly-used Boolean operations such as drilling holes,
creating grooves, and cutting by a large box are also available. Blending functions are provided
for rounding and chamfering solid edges.
Creating 3D Solids from 2D Profiles
Using 2D profiles to create solids enables you to model a wide range of objects. The solid shape
can be edited by modifying the original 2D profile.
Defining a 2D Profile
When using a 3D function that requires a 2D profile as input, you will be optionally switched to
the 2D drawing area. You can stay in 3D and create the profile using 2D drawing in 3D. In this
case, you can define a drawing plane:
As an existing plane at a solid
Plane created by selected axes at a selected solid
Plane defined by 3 points
Plane created by selected axes of 3D space
If you create a new profile used for extrusion, rotation or other similar method of solid
creation, the created solid is pre-inserted according to the profile’s location in 3D space.
profile will be used. If you do not set the X axis, the default 2D X axis will be used. The insertion
point and X axis direction are used when inserting the solid into 3D space.
ec
M
MODULE - 1
VISUAL REALISM & MODELING SOFTWARES
VISUAL REALISM
The most effective way to communicate new ideas and designs of engineers are
visualization and hence, the visualization plays an important role in CAD/CAM. The performance
of any CAD/CAM systems is evaluated on the basis of their ability of displaying realistic visual
image. Visualization can be defined as a technique for creating images, diagrams or animations
to communicate ideas. The visual realism concentrates basically on the visual appearance of
objects. In this approach, various techniques of computer graphics are applied on the model to
make it appear as realistic as possible.
Projection and shading are two most common methods for visualizing geometric models.
Orthographic projection is one of the oldest methods to represent new design ideas for complete
dimensional referencing. But, it has the disadvantage of difficulty in interpreting various views and
also time consuming. CAD uses isometric and perspective projections in addition to orthographic
projections for generating rich visual images with complete design information. Visual realism can
also convey appearance characteristics of the model such as colour and texture. By using such
visual realism techniques, it is possible to make the user to feel that the images are real objects.
It is also useful in determining the spatial relationship between objects as in the case of assembly
modeling.
There are two important and popular form of visualization methods such as animation and
simulation. The various kinematic mechanisms with number of links can be modeled and their
es
motion can be simulated by using visual realism. Similarly, by using FEA technique, we can
model and simulate the heat flow in a pipe, deformation in a beam or structure, electromagnetic
field, etc. The heat flow can be simulated frame-by-frame for different time steps. In a similar way,
ot
it is also possible to verify the tool path of the numerical control (NC) by generating and
displaying the motion of the tool path. It can be achieved by entering the numerical data of the
hn
path of the cutting tool as NC part programming. Also, the virtual realistic model may be used for
marketing to access its acceptability before actually manufacture it.
Most of the cases, 3D models are used to create the visual real effect. An object may
ec
consist of number of vertices, edges, surfaces which are represented realistically in 3D modeling.
The major problem in visualization of object is representing the depth of 3D object into 2D
M
screens. Projecting 3D object into 2D screen displays the complex lines and curves which may
not give a clear picture to interpret. The first step towards visual realism is to eliminate these
ambiguities which can be obtained using hidden line removal (HLR), hidden surface removal
(HSR) and hidden solid removal approaches.
There are further more approaches to achieve the visual realism such as shading,
lighting, transparency and colouring. Surface and solid models can be shaded with two-step
process. First, we need to remove the hidden surfaces and then shade only the visible portions.
The highest level of visual realism can be achieved by shading. Lighting such as source and
ambient lights flashed on the objects can be simulated. Lighting gives more clear and better
shading representation for the object. Various colouring schemes can be modeled for different
components of the assembly model based on the material of components. This approach is
useful in identifying materials of the parts and it differentiates various assembled components.
Transparency of the face enables the inner details to be viewed by reducing the intensity of the
face. However, these approaches consume a lot of computing time and occupy plenty of memory
space of the computer. But, now-a-days, computers with advanced and faster processors are
available which makes these processes easier.
by displaying clear and more realistic images. A typical example of an object before and after
removal of hidden lines is shown in Figure 4.4. As it is shown, the appearance of the object is
greatly complicated by the visibility of hidden details. Therefore, it is necessary to remove hidden
ec
details such as edges and surfaces. The edges and surfaces which need to be removed
depending on its view port, viewing direction and viewing window. One of the most challenging
M
problems considered in computer graphics is the determination of hidden edges and surfaces.
es
ot
hn
ec
M
Containment proceeds:
If the sum of the angles is equal to zero, point P is outside the polygon.
(b) If the sum is equal to 360°, point P is inside the polygon.
way of implementing the depth comparison to remove the faces which are not visible in a specific
view port. As we know, every surface has a surface normal. According to this test principle, the
viewing direction needs to be correlated with its surface normal. Faces whose surface normal has
ec
a positive component in z direction are visible and those whose surface normal has a negative z
component are not visible.
M
Example:
To remove faces in the back of an object
es
ot
hn
ec
Fig.4.8 Silhouettes
Example:
Silhouettes – the edges that separate visible from invisible faces in an object.
M
If an edge belongs to two visible faces, it is visible but not a part of the silhouette.
MODULE - 3
HIDDEN SURFACE REMOVAL
es
The hidden surface removal is the procedure used to find which surfaces are not visible
ot
from a certain view. A hidden surface removal algorithm is a solution to the visibility issue, which
was one of the first key issues in the field of three dimensional graphics. The procedure of hidden
hn
surface identification is called as hiding, and such an algorithm is called a 'hider'. Hidden surface
identification is essential to render a 3D image properly, so that one cannot see through walls in
virtual reality.
ec
Hidden surface identification is a method by which surfaces which should not be visible to
the user are prohibited from being rendered. In spite of benefits in hardware potential there is still
M
es
ot
hn
ec
M
es
ot
hn
ec
M
Ray-Tracing algorithm
Ray-Tracing algorithm
For every pixel in image
{
Generate ray from eye point passing via this pixel
Initialize Nearest ‘T’ to ‘INFINITY’
Initialize Nearest Object to NULL For each object in scene
{
If ray intersects this image
{
If t of intersection is less than Nearest T
{
Set Nearest T to t of the intersection
Set Nearest image to this object
}
}
}
the point of intersection, study the material properties of the object, and join this information to
ec
compute the finishing color of the pixel. One of the major limitations of algorithm, the reflective or
translucent materials may need additional rays to be re-cast into the scene.
M
es
Shading
ot
hn
ec
M
The image shown in figure 3.9 is the same model rendered without edge lines. It is
complicated to advise where one face of the box ends and the next starts.
MODULE - 6
COLOURING
Colouring is useful for creating geometry and displaying images. It is also possible to
differentiate the different geometry by assigning different colours to each of them. The use of
colour may be extended to finite element analysis in which it is used to display the different heat
intensities or stress intensities in the model.
There are two types of colours: chromatic colour and achromatic colour. Chromatic
colours are provided multi-colour image in the display whereas achromatic colours provide only
black-and-white displays. Achromatic colour can have the variation of three different patterns
es
such as white, black, and various levels of gray which is a combination of white and black.
These variations are achieved by assigning the different intensity values. The intensity
ot
value of 1 provides white colour whereas 0 displays the black colour. More pleasing effects to the
hn
human vision system can be produced by chromatic colours. But they are very complex subject
which deals both physics and physiology. However, fundamental concepts are discussed here.
ec
The human vision system interprets electromagnetic energy with wavelengths between
400 and 700 nanometers as visible light. The various colours produced by different wavelengths
M
RGB model is more suitable for quantifying direct light such as the one generated in a CRT
monitor, TV screens.
ii. CMY model:
The CMY model is subtractive. In the CMY model, the convergence of the three primary
colours such as cyan (C), magenta (M) and yellow (Y) produces white as shown in Figure 3.34. In
contrast to colour on the monitor, the colour in printing acts subtractive and not additive. A printed
colour which looks red absorbs the other two components G and B and it reflects R. Thus, its
es
The conversion from an RGB representation to a CMY representation with the matrix
ot
transformation can be expressed by
𝐶 1 𝑅
hn
[𝑀] = [1] − [𝐺 ]
𝑌 1 𝐵
ec
Where the white is represented in the RGB system as the unit column vector. Similarly, we
convert from a CMY colour representation to an RGB representation with the matrix
M
transformation.
𝑅 1 𝐶
[ 𝐺 ] = [ 1] − [ 𝑀 ]
𝐵 1 𝑌
Where black is represented in the CMY system as the unit column vector.
iii. YIQ model:
The YIQ model is used for raster colour graphics. In this colour model, the parameter Y is
same as in XYZ model. Brightness information is contained in Y parameter while chromaticity
information (hue and saturation) is incorporated into I and Q parameters. Combinations of red,
green and blue intensities are chosen for the Y parameter to yield the standard luminosity curve.
Since Y contains the luminance information, black and white television monitors use only Y
signal. Parameter I contains orange-cyan hue information which provides the flesh-tone shading
and the parameter Q carries green-magenta hue information.
The conversion from RGB values to YIQ values is accomplished with the following
transformation.
𝑌 0.299 0.587 0.144 𝑅
[ 𝐼 ] = [0.596 −0.275 −0.321] − [𝐺 ]
𝑄 0.212 −0.528 0.311 𝐵
es
ot
hn
ec
M
Hue H is represented as an angle about the vertical axis ranging from 0° at red through 360°.
Vertices of the hexagon are separated by 60° intervals. Yellow is at 60°, green at 120°, and cyan
opposite red at H = 180°. Complementary colours are 180° apart.
Saturation S varies from 0 to 1. It is represented in this model as the ratio of the purity of a
selected hue to its maximum purity at S = 1. A selected hue is said to be half pure at the value
S=0.5. At S = 0, the gray scale is produced.
The value V varies from 0 at the apex of the hexcone to 1 at the top. The apex represents
black. At the top of the hexcone, colours have their maximum intensity. When V=1 and S=1, we
have the "pure" hues. White is the point at V = 1 and S = 0.
es
ot
hn
ec
M
The hue specifies the angle around the vertical axis of the double hexcone.
In this model, H=0° corresponds to blue. The remaining colours are specified around the
perimeter of the cone in the same order as in the HSV model. Magenta is at 60°, red is at 120°
and cyan is located at 180°. Again, the complementary colours are 180° apart on the double
cone.
Saturation parameter S specifies the relative purity of a colour. This parameter varies from
0 to 1, and pure hues are produced for S = 1 and L = 0.5. As S decreases, the hues are become
less pure. At S = 0, the gray scale is produced.
The lightness L is represented in the vertical axis. If L = 0, black colour is produced and
white is produced at L = 1. Gray scale is along L axis and the "pure hues" lie on the L = 0.5 plane.
physical principles required in this method. The motion should look like real one which is the only
ec
criteria to create this type of animation. Animations created during early days to create cartoon
characters are the example of this type of animation.
M
The computer animations are mostly used now-a-day as the computer techniques evolved
over the years. This technique produces more realistic images and motions as real one. In this
type of animation, physical laws using variety of calculations arc utilized. Hence, the animation
creation is considered as a science rather than art. There are number of animation software
available in the market for producing human body motion based on Kinematic or dynamic
analysis. Typical applications of computer animation are entertainment (motion pictures and
cartoons), advertising, scientific and engineering studies, and training and education.
Animation is also useful for modeling and simulation of engineering problems where large
amount of calculations and scientific data are involved. For example, in finite element analysis we
may need to create series of images with different colouring plots at different time intervals to
display the result in sequence. It can be achieved by computer animation techniques. There are
number of entertainment animations used in movies, advertisements and computer games.
These animations use modeling of muscles and human body kinematics to create facial
expressions, deformable body shape, unrealistic fight sequence, transformations etc.
6. Engineering:
Engineers do not require the realistic images the entertainment field demands. It must be
M
possible to identity unambiguously each separate part and the animation must be produced
quickly.
MODULE - 7
PARAMETRIC AND VARIATIONAL MODELING
The term parametric modeling denotes the use of parameters to control the dimensions
and shape of CAD models. Think of a rubber CAD model that can be stretched and deformed
through various controls, but cannot be ripped or torn. The manipulation of a CAD model of a
single part could be through overall part dimensions or through the dimensions of features.
Things get considerably more interesting if a parameterized assembly model is constructed.
Changes in assembly dimensions or in part dimensions can cause changes in assembly and part
shapes or in parts' assembled positions. Generally, it can be very useful to explore design spaces
by manipulating parametric CAD models - creating multiple instantiations of a design and
analyzing their properties.
There are two broad approaches parametric modeling:
parametric geometry
defined (Figure 3.12b), with dimension d2 as a design variable that is to vary. The hole must be
ec
placed to the profile of the base block with its width dimension (d1 in Figure 3.12c) related to that
of block width d2, as dl = 0.5d2. This one-way parameter assignment is essentially parametric
M
modeling.
In most CAD, the base block is a protrusion feature generated by extruding the sketch profile
shown in Figure 3.12b along an extrusion direction that is normal to the sketch profile. The hole is
an extrude cut feature that does not require users to sketch its profile, which is called a pick-and-
place feature.
FIGURE 3.12 (a) The Block Example for the Illustration of Design Intent Capturing Using
Feature-based Parametric Solid Modeling Method, (b) Sketch Profile of the Base Block with
Width Dimension d2 Shown, (c) Position of the Hole by Dimension d1, which can be
Parametrically Related to Dimension d2.
BEHAVIOR MODELING
Behavior modeling is the latest development in mechanical CAD. It gives the designers
more efficient and adaptable ways of creating designs. It helps to synthesize required functional
es
behavior, design context and geometry. Through an intelligent process of knowledge capture and
iterative solving behavior modeling allows engineers to pursue highly innovative and robust
ot
designs. The process of behavior modeling involves: Smart models: These encapsulate
hn
engineering intelligence. Designs are created using feature based techniques, which capture
geometry, specifications, design intent, and process knowledge-all at the design level.
ec
Engineering objective based design: Design tools use feature based design specifications within
the smart model to drive and adapt product design. Using objective driven functions, engineers
M
can arrive at an optimum design, even in designs with several variables and constraints and
multiple objective criteria. Open extensible environment: This facilitates associative bi-directional
communication to any external application like analysis, manufacturing etc. at the feature level of
the design ensuring that model reflects the changes incorporated in other applications.
Behavior modeling helps to create designs which are more innovative, differentiable and
more responsive to customers’ requirements. With the help of objective driven design process
engineers can focus on key design issues, and evolve optimal design solutions for better
performance and functionality.
Behavior modeling helps to make electronic product designs more complete.
Behavior modeling strategy advances feature-based modeling to accommodate a set of
adaptive process features that go beyond the traditional core geometric features. These features
accommodate a variety of information that further specifies the intent and performance of the
design. There are two distinct categories of adaptive design. Application features describe
process information. Behavioral features contain engineering and functional specifications.
Application features encapsulate product and process information.
MODULE - 8
OVERVIEW OF MODELING SOFTWARES:
In 3D computer graphics, 3D modeling (or modelling) is the process of developing a
mathematical representation of any three-dimensional surface of an object (either inanimate or
living) via specialized software. The product is called a 3D model. It can be displayed as a two-
dimensional image through a process called 3D rendering or used in a computer simulation of
es
physical phenomena. The model can also be physically created using 3D printing devices.
Models may be created automatically or manually. The manual modeling process of
ot
preparing geometric data for 3D computer graphics is similar to plastic arts such as sculpting. 3D
modeling software is a class of 3D computer graphics software used to produce 3D models.
hn
1. PRO-E,
2. CATIA,
3. IDEAS,
M
4. SOLID EDGE
5. Autodesk Inventor etc.
PRO-E
Pro/ENGINEER is a computer graphics system for modeling various mechanical designs
and for performing related design and manufacturing operations. The system uses a 3D solid
modeling system as the core, and applies the feature-based, parametric modeling method. In
short, Pro/ENGINEER is a feature-based, parametric solid modeling system with many extended
design and manufacturing applications.
Pro/ENGINEER is the first commercial CAD system entirely based upon the feature-
based design and parametric modeling philosophy. Today many software producers have
recognized the advantage of this approach and started to shift their product onto this platform.
Pro/ENGINEER Functionality
The basic functionality of Pro/ENGINEER is broken into several areas:
Part Design
Assembly Design
Design Documentation (Drawings)
General Functionality
Powerful Assembly Capabilities: Assembling components is easy with Pro/ENGINEER simply tell
ec
the system to "mate," "insert," or "align" the components and they are assembled, always
maintaining the design intent. Also, the components "know" how they are related, so if one
M
changes, either positionally or geometrically, the other will change accordingly. Parts can be
designed right in the assembly and defined by other components, so if they move or change size,
the part will automatically update to reflect the change.
Robustness: The Pro/ENGINEER family of products is based on a double precision, nonfaceted
solid modeling core. This provides the engineer with the most accurate representation of
geometry, mass properties, and interference checking available.
Change Management: Powerful change capabilities are inherent with Pro/ENGlNEER full
associativity, enabling design-through-manufacturing disciplines to execute their functions in
parallel. Tools for parametric data management successfully manage these simultaneous
processes and promote an organized, controlled workflow.
Hardware Independence: Pro/ENGINEER runs on all of the major UNIX and Windows NT
platforms, maintaining the same look and feel on every system. Users can select the most
economical hardware configuration for their needs, and mix and match any combination of
platforms. Information can be easily exchanged from one machine to the other, with
Pro/ENGINEER managing any architectural differences.
GSA *.CATAnalyis
NC *.CATProcess
Material *.CATMaterial
Shape *.CATShape
MODULE - 9
DEMO ON CATIA V6 SOFTWARE
to meet this need is to write direct translators from one software to another. This means that each
system developer will have to produce its own translators.
ec
This will necessitate a large number of translators. If we have three software packages we may
M
Figure 17.4 illustrates how the CAD data transfer is accomplished using neutral file.
es
Three types of neutral files are discussed in this chapter. They are:
ot
i. Drawing exchange files (DXF)
ii. IGES files
hn
MODULE - 2
ec
M
es
ot
hn
ec
M
es
ot
hn
ec
M
es
ot
hn
ec
a) Start Section
The Start section is a human readable introduction to the file. It is commonly described
as a "prologue" to the IGES file. This section contains information such as the names of
M
the sending (source) and receiving (target) CAD/CAM systems, and a brief description of
the product being converted.
b) Global Section
The Global section includes information that describe the preprocessor and information
needed by the postprocessor to interpret the file. Some of the parameters that are
specified in this section are:
1. Characters used as delimiters between individual entries and between records
(usually commas and semicolons respectively),
2. The name of the IGES file itself,
3. Vendor and software version of sending (source) system,
4. Number of significant digits in the representation of integers and single and double
precision floating point numbers on the sending systems,
5. Date and time of file generation,
6. Model space scale,
7. Model units,
8. Minimum resolution and maximum coordinate values,
9. Name of the author of IGES file.
e) Terminate Section es
The Terminate section contains a single record which specifies the number of
records in each of the four preceding sections for checking purposes.
ot
hn
ec
M
o Working from file, usually in binary format, that can be shared by multiple systems
M
PATRAN, and PRIME etc.) Standard Interchange Format (SIF) of Intergraph Corporation
(available for Applicon, Autotrol, and Calma etc.), ICAM Product Data Definition Interface (PDDI),
ec
and VDA sculptured surface Interface (VDAFS), Electronic Design Interchange Format (EDIF),
Transfer and Archiving of Product Definition Data (TAP) etc. Another alternative to IGES is the
M
neutral format outlined in ANSI Y14.26M standard. It must be noted here that some of the
features of many of these alternatives are superior to that of IGES.
es
Step2:
ot
Save it to any standard, say IGES or STEP standard
hn
ec
M
OR
es
ot
hn
ec
M
have kept the same database in paper form. However, the existence of computers to store and
manipulate the data does change user expectations: we expect to store more data and make
ec
es
ot
hn
ec
M
A Cloud database is a database that relies on cloud technology. Both the database and
most of its DBMS reside remotely, "in the cloud," while its applications are both developed by
programmers and later maintained and utilized by (application's) end-users through a Web
browser and Open APIs. More and more such database products are emerging, both of new
vendors and by virtually all established database vendors.
Data warehouse
Data warehouses archive data from operational databases and often from external
es
sources such as market research firms. Often operational data undergoes transformation on its
ot
way into the warehouse, getting summarized, anonym zed, reclassified, etc.
The warehouse becomes the central source of data for use by managers and other end-
hn
users who may not have access to operational data. For example, sales data might be
aggregated to weekly totals and converted from internal product codes to use UPCs so that it can
ec
and mining data, transforming, loading and managing data so as to make it available for further
use.
Operations in a data warehouse are typically concerned with bulk data manipulation, and
as such, it is unusual and inefficient to target individual rows for update, insert or delete. Bulk
native loaders for input data and bulk SQL passes for aggregation are the norm.
Distributed database
MODULE - 9
RELATIONAL DATABASE
A relational database is a collection of data items organized as a set of formally-described
tables from which data can be accessed or reassembled in many different ways without having to
reorganize the database tables. The relational database was invented by E. F. Codd at IBM in
1970.
A relational database is a set of tables containing data fitted into predefined categories.
Each table (which is sometimes called a relation) contains one or more data categories in
columns. es
Each row contains a unique instance of data for the categories defined by the columns.
For example, a typical business order entry database would include a table that described
ot
a customer with columns for name, address, phone number, and so forth.
hn
ec
M
UNIT – IV
1. What are the standards for computer graphics?
2. Classification of data exchange standards.
3. Define data structures.
4. Define IGES.
5. Define STEP.
6. Define entity storage.
7. What is the interactive modelling for data structures?
8. Define relational database.
9. Define SQL.
10. Role of oops in CAD.
11. What are types of languages used in CAD?
12. What are the uses of Computer in CAD?
13. What is the software’s used in CAD?
14. What are the advantages of CAD in manufacturing?
15. What are processes involved in STEP?
16. How Information technology is applicable in CAD?
es
ot
hn
ec
M
14. (a) Explain the basic transformation of translation in 2-D transformation. (6)
(b) Discuss about isometric projection. (5)
ec
UNIT III
15. (a) Describe surface modeling. (6)
(b) Discuss about cross hatching and pattern filling. (5)
M
Or
16. (a) Write some designs used to modeling of curves and surfaces. (5)
(b) Distinguish the model creation features for curves and surfaces. (6)
UNIT IV
17. (a) Explain the exchange of CAD data between software packages. (6)
(b) Describe modeling functionalities of parasolid. (5)
Or
18. (a) Discuss about the standard for computer graphics. (6)
(b) Discuss about Data exchange standards. (5)
UNIT V
19. (a) Discuss about strategies for knowledge Acquisition. (6)
(b) Explain the Inference schemes. (5)
Or
20. (a) Discuss the approaches to the application AI in design. (6)
(b) Describe the overview of modelling software. (5)
Note:
The Striked questions are old regulation.
Or
16. Explain different representations of curves and surface with adequate equations. (11)
M
UNIT IV
17. Explain the function of Simple data structure. How these data structures support interactive
modeling? (11)
Or
18. (a) Briefly explain the SQL query with its basic expressions. (5)
(b) Discuss the role of object oriented program in CAD. (6)
UNIT V
19. (a) How modeling done by CATIA software? Briefly explain with necessary steps. (6)
(b) Briefly describe any four applications of AI in design. (5)
Or
20. Describe in detail about different inference process schemes. (11)
Note:
The Striked questions are old regulation.
number of lines required to display the circle and Calculate the screen coordinates of the first-
of the lines. The window bounds are (40, 100) and (160, 200) and the viewport bounds are at
(0, 50), (480, 450) (5)
ec
UNIT III
15. Explain different representations of curves and surface with adequate equations. (11)
M
Or
16. Discuss briefly the three dimensional modeling. (11)
UNIT IV
17. Discuss the different data exchange standards used in CAD. (11)
Or
18. What are the different standards for graphics and computing? Explain any three standards in
detail.
UNIT V
19. (a) How artificial intelligence is used in CAD? Explain in detail. (5)
(b) Write short notes on PRO-E. How modeling done by this software?
Or
20. Discuss in detail about different strategies for knowledge acquisition.
Note:
The Striked questions are old regulation.
Or
16. What are the limitations found in the general wireframe modelling system? Explain with
ec
example.
UNIT IV
17. (a) Describe the requirements of product data exchange between dissimilar CAD/CAM
M
systems.
(b) Compare IGES and STEP.
Or
18. Explain the any one of the data structure organisation.
UNIT V
19. Explain the structure of an expert system.
Or
20. Explain the forward chaining inference models.
Note:
The Striked questions are old regulation.
PART- B
Answer ONE question from each unit (5X11=55)
UNIT I
11. How Raster scan graphics system works? Explain with neat sketches.
Or
12. Explain in detail the Morphology o£ Design Phases.
UNIT II
13. A triangle is defined in a two dimensional by its vertices (0, 2), (0, 3) and (1, 2). Translate the
es
triangle in space by 2 units in the x-direction and 5 units in the y-directions.
Or
14. Explain any one Hidden surface removal algorithm.
ot
UNIT III
15. Explain the basic concept of geometric and solid modelling used in CAD application.
hn
Or
16. What are the basic elements of a boundary represented solid model scheme? Explain briefly.
ec
UNIT IV
17. (a) Explain in detail IGES file structure (b) Describe the STEP methodology.
Or
M
Note:
The Striked questions are old regulation.
PART- B
Answer ONE question from each unit (5X11=55)
UNIT I
11. What do you understand by raster scanning? Why is it preferred to the storage tube in the
display of graphics information? Explain with neat sketches.
Or
12. Explain the various steps involved in the design process in detail.
UNIT II
es
13. A rectangle has corner co-ordinates (10, 20), (40, 20), (40, 40), (10, 40). This rectangle is
rotated by 30° anticlockwise about (a) Origin and (b) about the point (40, 20). Compute the
new co-ordinates in both cases. (5 + 6)
ot
Or
14. Explain any one Hidden line removal algorithm.
hn
UNIT III
15. What are the limitations found in the general wire frame modeling systems? Explain with an
ec
example.
Or
16. Describe briefly the following:
M
Note:
The Striked questions are old regulation.
PART- B
Answer ONE question from each unit (5X11=55)
UNIT I
11. Explain the design process in the model of Earle Model.
Or
12. Explain the construction and operation of a Cathode Ray Tube.
UNIT II
es
13. Explain the mid- point circle algorithm with an example.
Or
14. Explain the 2D and 3D transformations with an example.
ot
UNIT III
15. Explain the boundary representations in solid modelling with an example.
hn
Or
16. What are control points? State the importance characteristics of Bezier curves.
ec
UNIT IV
17. What is IGES exchange format? Explain the file structure of an IGES files with an example.
Or
M
Note:
The Striked questions are old regulation.
Or
16. Describe the Boolean expression formation of constructive solid geometry model with a
ec
suitable sketch.
UNIT IV
17. Explain the concepts of product data exchange using step in detail.
M
Or
18. Explain the any one of the data structure organization.
UNIT V
19. Explain the typical architecture of an expert system.
Or
20. Explain the structure of knowledge base acquisition.
Note:
The Striked questions are old regulation.
Both product and process design run in parallel and take place in the same time.
Process and Product are coordinated to attain optimal matching of requirements for
M
Raster Scan system, the screen is scanned from top to bottom, left to right all the time to
generate graphics. This is similar to home television scan system, thus suggesting the name
digital scan.
14. What do you mean by scan conversion?
es
The graphic system digitizes a specific model into a frame of discrete color points saved in a
piece of memory called the frame buffer. This digitalization process is called scan-conversion.
ot
15. What is the basic principle of vector refresh graphics terminal?
This type of terminal permits pictures to be easily modified and so is ideally suited to
hn
2.
2.
M
UNIT – III
28. Define the term geometric modelling.
ec
Geometric modelling is the technique by which different 3D objects are drawn and
visualized by a modeling software. Geometric modeling is done in three principal ways. They are:
M
UNIT – IV
38. List some-popular geometric modelers. / List out some commercially available
packages for 3D modelling.
List of 3D modeling software es
1. PRO-E,
2. CATIA,
3. IDEAS,
ot
4. SOLID EDGE
5. Autodesk Inventor etc.
hn
es
ot
hn
ec
M
HANDOUTS
ec
M
CAD
architecture.
CAD Hardware: workstation – CPU, mass storage, input devices
(keyboard, light pen, thumb wheel joy stick, mouse, digitizer etc.,) and
output devices (printers, plotters) Display Devices : storage tube – raster
scan , vector refresh, plasma panel and LCD.
Presented by (09 hours)
Unit – II
R. Hemanth Kumar Bresenham’s line and circle algorithms. Transformation in Graphics: co-
ordinate system used in Graphics and windowing and view port
Asst. Professor transformations, Clipping , hidden line elimination,
2D transformations – rotation, scaling, translation, mirror, reflection and
Mechanical Engineering shear – homogeneous transformations – concatenation, 3D
Transformation – orthographic and Perspective Projections.
(09 hours)
es
Unit – III Unit – IV
Classification of Geometric Modeling – Wire frame, Surface and Solid Hidden line-surface-solid removal algorithm-shading-colouring-
Modeling, applications – representation of curves and surfaces – animation
ot
Parametric form – Design of curved shapes- Cubic spline – Bezier curve Parametric and variational modeling, Feature based modeling,
– B-spline – Design of Surfaces - features of Surface Modeling Package – An overview of modeling software like PRO-E, CATIA, IDEAS, SOLID
Solid Primitives, CSG, B-rep and description of other modeling EDGE and other advanced Softwares. (09 hours)
hn
Morphology of Design
Collection of time phases. It consists of seven phases Models of the Design Process
Phase I Feasibility Study
es
I. Shiegly Design
ot
Phase II Preliminary (Embodiment) Design
II. Steps of the design process according to Pahl and Beitz (1984)
es
comprising four main phases which may be summarized as:
ot
hn
ec
M
Problem Identification
Preliminary Ideas
Problem Refinement
Analysis
Decision
Implementation
R.Hemanth Kumar, Asst Prof 17 R.Hemanth Kumar, Asst Prof 18
es
ot Concurrent Vs Sequential Engineering
Application
Software
Hardware: the computer and associated peripheral equipment
Graphics utility
User Interface Software: the computer programs running on the hardware
Device drivers Data: the data structure created and manipulated by the software:
Input- Output
devices
R.Hemanth Kumar, Asst Prof 25 R.Hemanth Kumar, Asst Prof 26
es CAD Hardware
• Model definition: to add geometric elements to a model of the form of a
component;
Workstation – CPU
Model manipulation: to move, copy, delete, edit or modify elements in models;
Mass storage – Magnetic tape storage, Magnetic Disc
ot
Picture generation: to generate images of the design model
User interaction: to handle commands input by user and to present output to the Storage, Magnetic drum storage
user about the operation of the system; Input devices - (keyboard, light pen, thumb wheel, joy stick,
hn
Database management: for the management of the files that make database mouse, digitizer, Touch Screen, Track Ball) Output devices -
Application: these elements of the software do not modify the design model, but
(printers, plotters)
use it to generate information for evaluation, analysis or manufacture;
ec
2. Arithmetic Logic unit • It controls the input and output of information through I/O devices,
3. Memory synchronizes the transfer of signals between the various sections.
• Executive program, which is stored in memory.
Arithmetic Logic unit
• The ALU provides the circuitry required to perform the various calculations
and manipulations of data.
• Most ALU’s can add and subtract, but latest ALU’s = capable of
multifunctions and complex mathematical functions.
• ALU’s with simplex circuits are capable of being programmed to perform these
more complicated operations, but more computing time is required.
• The more complex arithmetic logic units are faster, but these units are more
R.Hemanth Kumar, Asst Prof 29 costly. R.Hemanth Kumar, Asst Prof 30
Main memory (primary storage) that it can easily hold large amount of data for its size.
• Magnetic tape unlike punched paper tapes or cards can be used
Auxiliary memory (Secondary storage)
again by simply overwriting previously stored data.
Mass storage • Since data are stored sequentially access time is relatively
The most common device used for computer storage technologies are slow.
Magnetic tape storage • However, the low cost per bit and high capacity of magnetic
• The storage medium is a magnetically coated disk. There are several types and sizes
of disks each best suited to a particular set of applications.
es Floppy disks come in two standard sizes: the larger one is 8 inches in diameter and
smaller is 5 ¼ inches and is referred to as mini floppy.
during operation. The drum is rotated at a constant speed and data are recorded in the
form of magnetized spots. The drum can be read repeatedly without causing data loss.
ec
M
1. Impact printers
mechanical hammering device
Printing mechanisms: (a) with typebars, (b) and (c) without typebars; (1) typebar,
(2) inked ribbon, (3) paper (recording medium), (4) platen forpaper, (5) spherical
printing head, (6) hammer, (7) numeric (alphabetic) wheel
3. Laser printer
DISPLAY DEVICES
Technologies
ot
Cathode Ray Tube(CRT)
hn
Laser Display
CATHODE RAYS TUBE: In Random scan graphics can be generated by drawing vectors or line segments on the
screen in a random order which is controlled by the user input and the software. The word
“random” indicates that the screen is not scanned in a particular order.
Raster Scan system, the screen is scanned from top to bottom, left to right all the time to
generate graphics. This is similar to home television scan system, thus suggesting the name
The graphics display can be divided into two types based on the scan technology used to digital scan. The three existing CRT display that are based on these techniques are
control the electron beam. i. Refresh display (calligraphic)
Random Scan ii. Direct view storage tube
R.Hemanth Kumar, Asst Prof 41 R.Hemanth Kumar, Asst Prof 42
Raster Scan iii. Raster display
Direct View Storage Tube (DVST): Direct View Storage Tube (DVST):
es
Refresh display were very expensive in the 1960s due to the required refresh
buffer memory and fast display processor, and could only display a few
hundred vectors on the screen without flicker.
At the end of 1960s the DVST was introduced by Tektronix as an alternative
ot
and inexpensive solution.
The DVST eliminates refresh processors completely and consequently the
refresh buffer used with refreshes display.
It also uses a special type of phosphor that has a long – lasting glowing effect.
hn
Raster displays are very popular and nearly all recent display research
Raster Display:
and development focus on them.
The inability of the DVST to meet the increasing demands by
various CAD/CAM applications for colors, shaded images and In raster display, the display screen area is divided horizontally and
animation motivated hardware designer to continue searching for vertically into matrix of small elements called picture element or pixel.
a solution.
A pixel is a small addressable area on the screen.
During the late 1970s raster display based on the standard
An N x M resolution defines on a screen with N rows and M Columns.
television technology began to emerge as a viable alternative.
Each row defines a scan line.
The drop in memory price due to advances in solid states made
large enough refresh buffers available support high resolution A rasterization process is needed in order to display either a shaded
display. area or graphics entities.
A typical resolution of raster display is 1280 x 1204 with a In this process the area or entities are converted into their
possibility to reach 4096 x 4096 as the DVST. corresponding pixels whose intensity and color are controlled by the
image processing system.
R.Hemanth Kumar, Asst Prof 47 R.Hemanth Kumar, Asst Prof 48
TWO MARKS:
UNIT – I
1. Define design process.
2. Define morphology of design.
3. What are the types of design models?
es 11.What are the types of mass storage devices?
12.Name some input devices.
ot
13.Name some output devices.
4. What are the applications of design models? 14.What are the types of display devices?
5. Define concurrent engineering.
hn
10.Define CAD hardware?R.Hemanth Kumar, Asst Prof 51 R.Hemanth Kumar, Asst Prof 52
UNIT II
MET71 COMPUTER AIDED DESIGN (3 1 0 4)
BRESENHAM’S LINE ALGORITHM
GRAPHICS & TRANSFORMATION Bresenham’s algorithm enables the selection of optimum raster locations to represent a
straight line
Unit – II
Bresenham’s line and circle algorithms. Transformation in Graphics: co-
ordinate system used in Graphics and windowing and view port
transformations, Clipping , hidden line elimination, 2D transformations –
rotation, scaling, translation, mirror, reflection and shear - homogeneous
transformations – concatenation, 3D Transformation – orthographic and
Perspective Projections.
(12 hours)
es
CO-ORDINATE SYSTEMS USED IN GRAPHICS
1.
2.
World CS
Local CS
ot
3. Object CS – reference to an object
4. Heirarchical CS – relevant to a parent
hn
TRANSLATION
es
X1 = X + TX
2-D & 3-D TRANSFORMATION Y1 = Y + TY
translate drawing by (TX , TY )
TRANSLATION
ot
SHEARING
hn
ROTATION
SCALING
ec
M
PROJECTIONS PROJECTIONS
es
PERSPECTIVE PROJECTION
ISOMETRIC PROJECTION TO ORTHOGRAPHIC PROJECTION
ot
hn
ec
M
1. Ends (vertices) of lines are represented 1. Ends of lines are represented by their
by their X and Y coordinates X, Y and Z coordinates.
2. Curved edges are represented by 2. Curved surfaces are represented by
circles, ellipses, splines etc. suitably spaced generators. Hidden
Additional views and sectional views line or hidden surface elimination is
are necessary to represent a complex a must to interpret complex
object with clarity. components correctly.
3. 3-D image reconstruction is tedious. 3. 2-D views as well as various pictorial
4. Uses only one global coordinate views can be generated easily.
system 4. May require the use of several user
coordinate systems to create features
on different faces of the component.
es
In this approach, a component is represented by its surfaces which in turn are The representation of solid models uses the fundamental idea that a physical object
represented by their vertices and edges.
For example, eight surfaces are put together to create a box, as shown in divides the 3-D Euclidean space into two regions, one exterior and one interior,
Apart from standard surface types separated by the boundary of the solid. Solid models are:
available for surface modeling
• bounded
ot
(box, pyramid, wedge, dome,
sphere, cone, torus, dish and • Homogeneously three dimensional
mesh) techniques are available
• Finite
for interactive modeling and
hn
editing of curved surface There are six common representations in solid modeling.
geometry. i. Spatial Enumeration: In this simplest form of 3D volumetric raster model, a
section of 3D space is described by a matrix of evenly spaced cubic volume
elements called voxels.
ec
design.
R.Hemanth Kumar, Asst Prof 75 R.Hemanth Kumar, Asst Prof 76
CSG Example
ADD SALIENT FEATURES OF SOLID MODELING
es
FEATURE-BASED DESIGN
• The most fundamental aspect in creating a solid model is the concept of feature-based
design.
• In typical 2-D CAD applications, a designer draws a part by adding basic geometric
+ =
ot
elements such as lines, arcs, circles and splines.
• In solid modeling a 3-D design is created by starting a base feature and then adding other
features, one at a time, until the accurate and complete representation of the part’s
geometry is achieved.
• A feature is a basic building block that describes the design, like a keyway on a shaft.
hn
Each feature indicates how to add material (like a rib) or remove a portion of material
REMOVE INTERSECT
(like a cut or a hole).
ec
M
SURFACE MODELING
Creating a Surface
• All physical objects are 3-dimensional.
• In a number of cases, it is sufficient to describe the boundary of a solid object in order A surface can be created in several ways:
to specify its shape without ambiguity. This fact is illustrated in Fig.. i. Creating a plane surface by the linear sweep of
• The boundary is a collection of faces forming a closed surface
a line or series of lines.
ii. Revolving a straight line about an axis.
Cylindrical, conical surfaces etc. can be generated
by this technique.
iii. Revolving a curve about an axis.
iv. Combination of plane surfaces.
v. Analytic surfaces: Planes, cylinders, cones, ellipsoid, parabolic hyperboloid etc can be
defined by mathematical equations in terms of X, Y and Z co-ordinates.
vi. Sculptured surfaces: These are also called free form surfaces. These are created by
spline curves in one or both directions in a 3-D space. These surfaces are used in the
manufacture of car body panels, aircraft structures, mixed flow impellers, telephone
instruments, plastic containers and several consumer and engineering products.
R.Hemanth Kumar, Asst Prof 83 R.Hemanth Kumar, Asst Prof 84
es
ot
hn
ec
M
Introduction
• We need smooth curves and surfaces in many
Representing Curves applications:
•
and Surfaces •
model real world objects
computer-aided design (CAD)
• high quality fonts
• data plots
• artists sketches
interpolation approximation
x
R.Hemanth Kumar, Asst Prof x 93 R.Hemanth Kumar, Asst Prof 94
Bezier curve
Hermit or cubic Spline Curve
es • 4 control points
• Curve passes through first & last control point
ot
• Curve is tangent at P1 to (P1-P2) and at P4 to (P4-P3)
hn
P1 P2
ec
P3
P0
M
R.Hemanth Kumar, Asst Prof 103 R.Hemanth Kumar, Asst Prof 104
Spatial Enumeration
Cell Decomposition
ec
Sweep Methods
Primitive Instancing
M
R.Hemanth Kumar, Asst Prof 105 R.Hemanth Kumar, Asst Prof 106
R.Hemanth Kumar, Asst Prof 107 R.Hemanth Kumar, Asst Prof 108
es
• Space is described as a regular array of cells
(usually cubes). Each cell is called a Voxel
• A 3D object is represented as a list of filled voxels
ot
hn
ec
M
R.Hemanth Kumar, Asst Prof 111 R.Hemanth Kumar, Asst Prof 112
• Pros:
–Easy to verify if a point (a voxel) is inside or
outside an object
– Boolean operations are easy to apply
• Cons:
– Memory costs are high
– Resolution is limited to size and shape of voxel
R.Hemanth Kumar, Asst Prof 113 R.Hemanth Kumar, Asst Prof 114
Primitive Instancing
• Define a family of parameterized objects
• The definition is procedural (a routine defines it)
• Not general, must be individually defined for each
esRepresenting Curves and
ot
family of objects
Surfaces
hn
ec
M
R.Hemanth Kumar, Asst Prof 119 R.Hemanth Kumar, Asst Prof 120
x x
curve must pass through curve is influenced by control
control points points
f(x) f(x)
interpolation approximation
R.Hemanth Kumar, Asst Prof 123 R.Hemanth Kumar, Asst Prof 124
R.Hemanth Kumar, Asst Prof 125 R.Hemanth Kumar, Asst Prof 126
cx cy cz
d x dy d z
Q(t ) [ x(t ) y (t ) z (t )] T C T M G
R.Hemanth Kumar, Asst Prof 127 R.Hemanth Kumar, Asst Prof 128
Bezier curve
• 4 control points
• Curve passes through first & last control point es Properties of a Bézier Curve
ot
• Curve is tangent at P1 to (P1-P2) and at P4 to (P4-P3)
hn
P1 P2
Parabola Curve Cubic Curve
ec
P3
P0 Cubic Curve
M
R.Hemanth Kumar, Asst Prof 129 R.Hemanth Kumar, Asst Prof 130
R.Hemanth Kumar, Asst Prof 131 R.Hemanth Kumar, Asst Prof 132
R.Hemanth Kumar, Asst Prof 133 R.Hemanth Kumar, Asst Prof 134
Visibility Techniques
Surface test
Hidden surface removal
Computing Silhouettes
Hidden solid removal Edge intersection
ec
R.Hemanth Kumar, Asst Prof 135 R.Hemanth Kumar, Asst Prof 136
Minimax test
Containment test
Checks whether the polygons overlap or not. To check the vertices of one polygon for containment in the
other
Containment proceeds:
If the sum of the angles is equal to zero, point P is
outside the polygon.
These inequalities is true, the two polygons do not overlap (b) If the sum is equal to 360°, point P is inside the
R.Hemanth Kumar, Asst Prof 137 polygon. R.Hemanth Kumar, Asst Prof 138
R.Hemanth Kumar, Asst Prof 141 R.Hemanth Kumar, Asst Prof 142
2 2 2 2
R.Hemanth Kumar, Asst Prof 143 R.Hemanth Kumar, Asst Prof 144
Constant Shading
Shading
• Shading is how we “color” a triangle. es
• Constant Intensity or Flat Shading
• One color for the entire triangle
• Fast
ot
• Constant Shading
• Good for some objects
• Gouraud Shading • What happens if triangles are small?
hn
R.Hemanth Kumar, Asst Prof 147 R.Hemanth Kumar, Asst Prof 148
R.Hemanth Kumar, Asst Prof 149 R.Hemanth Kumar, Asst Prof 150
Color Cube
RGB Color Model
es
ot
hn
ec
M
R.Hemanth Kumar, Asst Prof 153 R.Hemanth Kumar, Asst Prof 154
R.Hemanth Kumar, Asst Prof 155 R.Hemanth Kumar, Asst Prof 156
R C
• Conversion
from CMY
to RGB
G
1 M
B Y
R.Hemanth Kumar, Asst Prof 157 R.Hemanth Kumar, Asst Prof 158
• YIQ
ot
• Backward compatible with black-and-white TV • Y: luminance
• Transmitted using NTSC (National Television System • I, Q: chromaticity
Committee) standard • Only Y shown in black-and-white TV
hn
• RGB YIQ
I
0.596 0 .275 0.321G
Q 0.212 0.528 0.311 B
M
R.Hemanth Kumar, Asst Prof 159 R.Hemanth Kumar, Asst Prof 160
R.Hemanth Kumar, Asst Prof 163 R.Hemanth Kumar, Asst Prof 164
Computer Animation
HSV Color Model
• W = (-, 0, 1)
• B = (-, 0, 0) es
The art of creating moving images via the use of
ot
computers
• R = (0, 1, 1)
Y = (60, 1, 1) The use of computers to create animations : also
hn
:
M = (300, 1, 1) referred to as CGI (Computer Generated Imagery)
• Adding white pigments S
The modeling, motion generation, addition of
ec
R.Hemanth Kumar, Asst Prof 165 R.Hemanth Kumar, Asst Prof 166
R.Hemanth Kumar, Asst Prof 169 R.Hemanth Kumar, Asst Prof 170
R.Hemanth Kumar, Asst Prof 171 R.Hemanth Kumar, Asst Prof 172
UNIT – V
MET71 COMPUTER AIDED DESIGN (3 1 0 4)
STANDARDS FOR COMPUTER GRAPHICS
CAD STANDARDS & DATA STRUCTURES Graphic software needs standards since the software becomes inevitably
device- dependent.
Unit – V If input/output devices change or become obsolete, its related software
Standards for computer graphics (GKS) and Data exchange standards becomes obsolete.
If the existing software to run on the new equipment is prohibitive (non-
– IGES, STEP. Standard for exchange images (open GL) compatible), the procedure to make it run is time consuming.
Data structures for Entity storage – Data structures for interactive There are four major benefits of introducing standards for basic computer
graphics.
modelling- Relational databases (09 hours) They are
Application program portability. This avoids hardware dependence
of the program.
Picture data portability. Description and storage of pictures should
be independent of different graphics devices.
Text portability.
Object data base portability.
R.Hemanth Kumar, Asst Prof 173 R.Hemanth Kumar, Asst Prof 174
INITIAL GRAPHICS EXCHANGE SPECIFICATION (IGES) GRAPHICS Table shows the IGES output of the wire frame model.
STANDARD
es
The IGES committee was established in the year 1979. The CAD/CAM Integrated
Information Network (CIIN) of Boeing served as the preliminary basis of IGES. IGES version 1.0
was released in 1980. IGES continues to undergo revisions. IGES is a popular data exchange
standard today.
Figure shows a CAD model of a plate with a centre hole.
The wire frame model of the component is shown in Fig.
ot
There are eight vertices (marked as PNT 0 - PNT 8), 12 edges and two circles that form the
entities of the model.
hn
ec
M
RELATIONAL DATABASE
A relational database is a set of tables containing data fitted into predefined &
hn
categories.
Each table (which is sometimes called a relation) contains one or more
data categories in columns.
Each row contains a unique instance of data for the categories defined by
Question Bank
the columns.
ec
http://searchsqlserver.techtarget.com/definition/relational-database
R.Hemanth Kumar, Asst Prof 183 R.Hemanth Kumar, Asst Prof 184
R.Hemanth Kumar, Asst Prof 185 R.Hemanth Kumar, Asst Prof 186
es
ot
hn
ec
M
R.Hemanth Kumar, Asst Prof 189 R.Hemanth Kumar, Asst Prof 190
R.Hemanth Kumar, Asst Prof 191 R.Hemanth Kumar, Asst Prof 192