Me6501-Cad Ut-2
Me6501-Cad Ut-2
Me6501-Cad Ut-2
Outfitted by : M.Pugalenthi, AP
DEPARTMENT OF MECHANICAL ENGINEERING
MOUNT ZION COLLEGE OF ENGINEERING AND TECHNOLOGY
MZCET/MECH/III-A&B/CAD/UNIT-2 1
UNIT II- GEOMETRIC MODELING
Representation of curves- Hermite curve- Bezier curve- B-spline
curves-rational curves-Techniques for surface modeling – surface
patch- Coons and bicubic patches- Bezier and B-spline surfaces.
Solid modeling techniques- CSG and B-rep
MZCET/MECH/III-A&B/CAD/UNIT-2 2
Representing Curves and Surfaces
Introduction
• We need smooth curves and surfaces in many
applications:
– model real world objects
– computer-aided design (CAD)
– high quality fonts
– data plots
– artists sketches
MZCET/MECH/III-A&B/CAD/UNIT-2 3
Introduction
• Most common representation for surfaces:
– polygon mesh
– parametric surfaces
– quadric surfaces
• Solid modeling
MZCET/MECH/III-A&B/CAD/UNIT-2 4
• Polygon mesh:
– set of connected planar surfaces bounded by
polygons
– good for boxes, cabinets, building exteriors
– bad for curved surfaces
– errors can be made arbitrarily small at the cost of
space and execution time
– enlarged images show geometric aliasing
MZCET/MECH/III-A&B/CAD/UNIT-2 5
• Major types of curves:
– Hermit
• defined by two endpoints and two tangent vectors
– Bezier
• defined by two endpoints and two other points that
control the endpoint tangent vectors
– Splines
• several kinds, each defined by four points
• uniform B-splines, non-uniform B-splines, ß-splines
MZCET/MECH/III-A&B/CAD/UNIT-2 9
Representation of curves
Analytic curves
Synthetic curves
MZCET/MECH/III-A&B/CAD/UNIT-2 10
Analytic curves
Analytical equations or mathematical equations such as lines, circles and
conics are used for representing the Analytical curves.
Advantages:
Any change in the curve can be easily modified in the design criteria.
MZCET/MECH/III-A&B/CAD/UNIT-2 11
Analytical Curves
1- Non-parametric representation analytical curves
Line Y mX c
Circle X 2 Y 2 R2
X2 Y2
Ellipse
2
2 1
a b
Parabola Y 2 4aX
Although non-parametric representations of curve equations are used in some
cases, they are not in general suitable for CAD because:
• The equation is dependent on the choice of the coordinate system
• Implicit equations must be solved simultaneously to determine points on
the curve, inconvenient process.
• If the curve is to be displayed as a series of points or straight line
segments, the computations involved could be extensive.
MZCET/MECH/III-A&B/CAD/UNIT-2 12
Synthetic curves
Synthetic curves are based on the method of the data points which is very
useful in designing the objects with curved shapes such as ship hull, car
Synthetic curves such as Bezier curves and splines are described by a set of
MZCET/MECH/III-A&B/CAD/UNIT-2 13
Synthetic curves also suffer from the following disadvantages:
MZCET/MECH/III-A&B/CAD/UNIT-2 14
HERMITE CURVE:
MZCET/MECH/III-A&B/CAD/UNIT-2 15
Continue…
1
Here,
S --- parameter
Ci --- the polynomial coefficient.
In scalar form, the above equation can be written as,
MZCET/MECH/III-A&B/CAD/UNIT-2 16
Continue…
where,
MZCET/MECH/III-A&B/CAD/UNIT-2 17
Continue…
To find the coefficients Ci consider the cubic spline curve with the
two end points P0 and P1 as shown,
MZCET/MECH/III-A&B/CAD/UNIT-2 18
Continue…
where,
P0 , P1 , P0’, P1’ Geometric coefficients
MZCET/MECH/III-A&B/CAD/UNIT-2 19
The function of ‘S’ in above equations are called blending functions.
The above equation shows that the curve shape can be controlled by
MZCET/MECH/III-A&B/CAD/UNIT-2 20
Shape control of Hermite curves:
directions.
magnitudes.
MZCET/MECH/III-A&B/CAD/UNIT-2 21
Limitations of Hermite curve:
characteristics.
The cubic curves never reduce exactly to a conic section and poorly
be added, thus creating more curves which are all still of cubic order.
MZCET/MECH/III-A&B/CAD/UNIT-2 22
BEZIER CURVE:
MZCET/MECH/III-A&B/CAD/UNIT-2 23
Continue…
The bezier curve is tangent to the first and last polygon segment of
the characteristic polygon.
MZCET/MECH/III-A&B/CAD/UNIT-2 24
Continue…
MZCET/MECH/III-A&B/CAD/UNIT-2 25
Continue…
MZCET/MECH/III-A&B/CAD/UNIT-2 26
Continue…
The positions of control points strongly affect the shape of the cubic
bezier curves.
MZCET/MECH/III-A&B/CAD/UNIT-2 27
Disadvantages of Bezier curves:
The curve does not pass through the control points which may be
The bezier curve lacks local control. It only has the global control
nature.
If one control point is changed, the whole curve changes. Thus the
MZCET/MECH/III-A&B/CAD/UNIT-2 28
Difference between the Bezier curve and Hermite curve:
Its defining points control the shape of the Bezier curve. It allows
polynomial for the Bezier curve is variable and related to the number
order derivatives.
MZCET/MECH/III-A&B/CAD/UNIT-2 29
B-SPLINE CURVES:
Bezier curves. Moreover B-spline curves are the proper and powerful
MZCET/MECH/III-A&B/CAD/UNIT-2 30
Continue…
of the resulting curve from the number of the given control points.
MZCET/MECH/III-A&B/CAD/UNIT-2 31
Continue…
where,
B- spline function
MZCET/MECH/III-A&B/CAD/UNIT-2 32
Advantages of B- spline curve:
B-spline curves also provide the ability to add control points without
MZCET/MECH/III-A&B/CAD/UNIT-2 33
RATIONAL CURVES:
formulated.
The most widely used rational curves are non uniform rational B-
splines (NURBS).
MZCET/MECH/III-A&B/CAD/UNIT-2 34
Geometric modeling
The mathematical description of the geometry of an object using a
software is called as Geometric modeling. By this Geometric modeling, it is
possible to display as well as manipulate the objects image on a graphical
screen.
MZCET/MECH/III-A&B/CAD/UNIT-2 35
The Role of Geometric Modeling in a CAD System
MZCET/MECH/III-A&B/CAD/UNIT-2 36
Basic Geometric Modeling Techniques
• 2-D Projection (Drawings)
• Wireframe Modeling
• Surface Modeling
Analytical Surface
Free-form, Curved, & Sculptured Surface
• Solid Modeling
Constructive Solid Geometry (CSG)
Boundary Representation (B-Rep)
Feature Based Modeling
Parametric Modeling
MZCET/MECH/III-A&B/CAD/UNIT-2 37
Wire-frame Modeling:
MZCET/MECH/III-A&B/CAD/UNIT-2 39
Wire-frame Modeling:
When part geometry is complex and in case of 3-D wire
frame systems, the hidden lines causes the image to be
confusing to the viewer.
During surface definition, there might be confusion. By
eliminating hidden lines, some clarity can be obtained.
Wire frame modeling is used for following representations.
2-D Representation
Orthographic views representation i.e., plan, elevation
and side view.
MZCET/MECH/III-A&B/CAD/UNIT-2 40
Difference between 2-D Wire Frame Model & 3-D Wire Frame
Model:
MZCET/MECH/III-A&B/CAD/UNIT-2 43
Continue…
MZCET/MECH/III-A&B/CAD/UNIT-2 44
Continue…
Pyramid wedge:
MZCET/MECH/III-A&B/CAD/UNIT-2 45
Continue…
Sphere:
A torus is defined by two radius values, one for the tube and the
other for the torus center to center of tube.
MZCET/MECH/III-A&B/CAD/UNIT-2 46
The techniques available for surface modeling are:
Surface patch
Coons patch
Bicubic patch
Bezier surfaces
B-spline surfaces
MZCET/MECH/III-A&B/CAD/UNIT-2 47
Surface Patch:
MZCET/MECH/III-A&B/CAD/UNIT-2 50
Bezier surface:
MZCET/MECH/III-A&B/CAD/UNIT-2 51
B-spline Surface:
MZCET/MECH/III-A&B/CAD/UNIT-2 52
Why solid modeling?
MZCET/MECH/III-A&B/CAD/UNIT-2 53
Solid model
MZCET/MECH/III-A&B/CAD/UNIT-2 54
Continue…
mass.
MZCET/MECH/III-A&B/CAD/UNIT-2 55
Solid model representation schemes
1. Constructive Solid Geometry (CSG)
2. Boundary representation Method (B-rep)
3. Half-space Method
4. Analytical Solid Modeling (ASM)
5. Primitive instancing
6. Sweep representation
7. Spatial enumeration
8. Instantiation.
MZCET/MECH/III-A&B/CAD/UNIT-2 56
Constructive solid geometry (CSG)
The primitives are such as cube, cylinder, cone, torus, sphere etc.
MZCET/MECH/III-A&B/CAD/UNIT-2 57
Continue…
Boolean operation
model.
• Union
– The sum of all points in each of two defined
sets. (logical “OR”)
– Also referred to as Add, Combine, Join, Merge
A B
AB
MZCET/MECH/III-A&B/CAD/UNIT-2 59
Constructive solid geometry (CSG)-
boolean operation
• Difference
– The points in a source set minus the points
common to a second set. (logical “NOT”)
– Set must share common volume
– Also referred to as subtraction, remove, cut
A B
A-B
MZCET/MECH/III-A&B/CAD/UNIT-2 60
Constructive solid geometry
(CSG)- boolean operation
• intersection
– Those points common to each of two defined
sets (logical “AND”)
– Set must share common volume
– Also referred to as common, conjoin
A B
AB
MZCET/MECH/III-A&B/CAD/UNIT-2 61
Constructive solid geometry
(CSG)- boolean operation
• When using boolean operation, be careful
to avoid situation that do not result in a
valid solid
A B
AB
MZCET/MECH/III-A&B/CAD/UNIT-2 62
Constructive solid geometry (CSG)-
boolean operation
• Boolean operation
– Are intuitive to user
– Are easy to use and understand
– Provide for the rapid manipulation of large
amounts of data.
• Because of this, many non-CSG systems also
use Boolean operations
MZCET/MECH/III-A&B/CAD/UNIT-2 63
Constructive solid geometry (CSG)- data
structure
• Data structure does not define model shape explicitly but
rather implies the geometric shape through a procedural
description
– E.g: object is not defined as a set of edges & faces but by the
instruction : union primitive1 with primitive 2
MZCET/MECH/III-A&B/CAD/UNIT-2 66
Constructive solid geometry (CSG)-
not unique
• More than one procedure (and hence database)
can be used to arrive at the same geometry.
MZCET/MECH/III-A&B/CAD/UNIT-2 67
Constructive solid geometry (CSG)
representation
• CSG representation is unevaluated
– Faces, edges, vertices not defined in explicit
• CSG model are always valid
– Since built from solid elements.
• CSG models are complete and unambiguous
MZCET/MECH/III-A&B/CAD/UNIT-2 68
Constructive solid geometry (CSG) - advantage
CSG is powerful with high level command.
MZCET/MECH/III-A&B/CAD/UNIT-2 70
Feature based Design
Extrude:
MZCET/MECH/III-A&B/CAD/UNIT-2 71
Feature based Design
However for drawing a 3-dimensional object, one should
create the features one by one accurately and thereby
obtain comprehensive part geometry.
Features include, cut, rib, hole, chamfer, pipe, offset and so
on. Features are the building blocks for a design. If any
change is encountered in the design of the object, features
adapt and get adjusted automatically according to these
design changes.
MZCET/MECH/III-A&B/CAD/UNIT-2 72
Sketched Featured Method
Extrude:
Sweep:
The method of defining a volume by sweeping a sketched cross
section along a trajectory is called sweep.
MZCET/MECH/III-A&B/CAD/UNIT-2 73
Sketched Featured Method
(i) Linear Sweep:
MZCET/MECH/III-A&B/CAD/UNIT-2 74
Sketched Featured Method
In this technique, lines (or) rectangles (or) any planes are
revolved around a central reference line to generate cylinders,
cones etc.
If a rectangle is swept, cylinder is generated. If a triangle is
swept, cone is generated.
Blend:
MZCET/MECH/III-A&B/CAD/UNIT-2 76
Sketched Featured Method
Hole:
This method is used to create the types of axially revolved cut out
geometries.
MZCET/MECH/III-A&B/CAD/UNIT-2 77
solution
• CSG representation tends to accompany the
corresponding boundary representation
hybrid representation
• Maintaining consistency between the two
representations is very important.
MZCET/MECH/III-A&B/CAD/UNIT-2 78
Boundary representation (B-Rep)
MZCET/MECH/III-A&B/CAD/UNIT-2 80
B-Rep vs surface modeling
• Surface model
– A collection of surface entities which simply
enclose a volume lacks the connective data to
define a solid (i.e topology).
• B- Rep model
– Technique guarantees that surfaces definitively
divide model space into solid and void, even after
model modification commands.
MZCET/MECH/III-A&B/CAD/UNIT-2 81
B-Rep data structure
MZCET/MECH/III-A&B/CAD/UNIT-2 82
Boundary representation- validity
MZCET/MECH/III-A&B/CAD/UNIT-2 84
Boundary representation- validity
• Validity also checked through mathematical
evaluation
– Evaluation is based upon Euler’s Law (valid for
simple polyhedra – no hole)
–V–E+F=2 V-vertices E- edges F- face loops
v5 V = 5, E = 8, F = 5
f3 f2 E3 5–8+5=2
E4
E1 v4 E7
f4 v3
f5 E2 E6
E8 f1
v1 E5 v2
MZCET/MECH/III-A&B/CAD/UNIT-2 85
Boundary representation- validity
• Expanded Euler’s law for complex polyhedrons
(with holes)
• Euler-Poincare Law:
– V-E+F-H=2(B-P)
– H – number of holes in face, P- number of passages or through
holes, B- number of separate bodies.
V = 24, E=36, F=15, H=3, P=1,B=1
MZCET/MECH/III-A&B/CAD/UNIT-2 86
Boundary representation- ambiguity
and uniqueness
• Valid B-Reps are unambiguos
• Not fully unique, but much more so than CSG
• Potential difference exists in division of
– Surfaces into faces.
– Curves into edges
MZCET/MECH/III-A&B/CAD/UNIT-2 87
Boundary representation- advantages
• Capability to construct unusual shapes that would not be possible
with the available CSG aircraft fuselages, swing shapes
• B-rep model can be easily converted into wire frame model system.
MZCET/MECH/III-A&B/CAD/UNIT-2 88
Boundary representation-
disadvantages
• Requires more storage
• More prone to validity failure than CSG
• Model display limited to planar faces and
linear edges
• This concept cannot be applied for tool
path generation.
- complex curve and surfaces only approximated
MZCET/MECH/III-A&B/CAD/UNIT-2 89
Solid object construction method
• Sweeping
• Boolean
• Automated filleting and chambering
• Tweaking
– Face of an object is moved in some way
MZCET/MECH/III-A&B/CAD/UNIT-2 90
Modeling tools includes
Sketching
Part creation
Assembling
Documentation
MZCET/MECH/III-A&B/CAD/UNIT-2 91
Sketching:
Any 3-Dimensional geometry involving a complex definition
and individual shape requires a 2-D sketch.
Sketches are required for all types of protrusion and cuts.
Parts Creation:
Using the features such as cuts, protrusion, chamfer, rounding,
holes and other features, parts are created.
Any information regarding the part can be obtained in sketcher
mode.
Similarly the sketched features can be modified and the
relationship can be set between features.
MZCET/MECH/III-A&B/CAD/UNIT-2 92
Assembling :
After the sketch for individual parts of a complex geometry is
completed, the solid modeler combines the parts for making an
assembly.
Parts Creation:
Finally, the design of the assembly is taken print out using printer /
plotter. While documenting, suitable tolerances could also be
provided.
MZCET/MECH/III-A&B/CAD/UNIT-2 93