UNIT 2 Cadm
UNIT 2 Cadm
Geometric Modeling
Introduction
Geometric modeling is a part of computational geometry and applied
mathematics that studies algorithms and techniques for the mathematical
description of shapes.
The shapes defined in geometric modeling are generally 2D or 3D, even
though several of its principles and tools can be used to sets of any finite
dimension. Geometric modeling is created with computer based applications.
2D models are significant in computer technical drawing and typography. 3D
models are fundamental to CAD and CAM and extensively used in many
applied technical branches such as civil engineering and mechanical
engineering and medical image processing.
Geometric models are commonly differentiated from object oriented
models and procedural, which describe the shape perfectly by an opaque
algorithm that creates its appearance. They are also compared with volumetric
models and digital images which shows the shape as a subset of a regular
partition of space; and with fractal models that provide an infinitely recursive
description of the shape. Though, these differences are often fuzzy: for
example, a image can be interpreted as a collection of colored squares; and
geometric shape of circles are defined by implicit mathematical equations.
Also, a fractal model gives a parametric model when its recursive description
is truncated to a finite depth.
Representation of curves
A curve is an entity related to a line but which is not required to be
straight. A curve is a topological space which is internally homeomorphism to
a line; this shows that a curve is a set of points which close to each of its points
looks like a line, up to a deformation.
A conic section is a curve created as the intersection of a cone with a
plane. In analytic geometry, a conic may be described as a
plane algebraic curve of degree two, and as a quadric of dimension two.
There are several of added geometric definitions possible. One of the
most practical, in that it involves only the plane, is that a non circular conic has
those points whose distances to various point, called a ‘focus’, and several line,
called a ‘directrix’,are in a fixed ratio, called the ‘eccentricity’.
1. Conic Section
Conventionally, the three kinds of conic section are the hyperbola, the ellipse
and the parabola. The circle is a unique case of the ellipse, and is of adequate
interest in its own right that it is sometimes described the fourth kind of conic
section. The method of a conic relates to its ‘eccentricity’,those with
eccentricity less than one is ellipses, those with eccentricity equal to one is
parabolas, and those with eccentricity greater than one is hyperbolas. In the
focus, directrix describes a conic the circle is a limiting with eccentricity zero.
In modern geometry some degenerate methods, such as the combination of two
lines, are integrated as conics as well.
The non-circular conic sections are accurately those curves that, for a point ‘F’,a
line ‘L’not having ‘F’and a number ‘e’ which is non-negative, are the locus
of points whose distance to ‘F’equals ‘e’ multiplies their distance to
‘L’.‘F’is called the focus, ‘L’the directrix, and ‘e’the eccentricity.
i. Linear eccentricity (c) is the space between the center and the focus.
ii.Latus rectum (2l) is parallel to the directrix and passing via the focus.
iii. Semi-latus rectum (l) is half the latus rectum.
iv. Focal parameter (p) is the distance from the focus to the directrix.
The relationship for the above : p*e = l and a*e=c.
Hermite curve
A Hermite curve is a spline where every piece is a third degree
polynomial defined in Hermite form: that is, by its values and initial derivatives
at the end points of the equivalent domain interval. Cubic Hermite splines are
normally used for interpolation of numeric values defined at certain dispute
values x1,x2,x3, …..xn,to achieve a smooth continuous function. The data
should have the preferred function value and derivative at each Xk. The Hermite
formula is used to every interval (Xk, Xk+1) individually. The resulting spline
become continuous and will have first derivative.
Cubic polynomial splines are specially used in computer geometric
modeling to attain curves that pass via defined points of the plane in 3D space.
In these purposes, each coordinate of the plane is individually interpolated by a
cubic spline function of a divided parameter‘t’.
Cubic splines can be completed to functions of different parameters, in several
ways. Bicubic splines are frequently used to interpolate data on a common
rectangular grid, such as pixel values in a digital picture. Bicubic surface
patches, described by three bicubic splines, are an necessary tool in computer
graphics. Hermite curves are simple to calculate but also more powerful. They
are used to well interpolate between key points.
This can be interpreted as the linear interpolate of respective points on the linear
Bezier curves from P0 to P1 and from P1 to P2 respectively. Reshuffle the
preceding equation gives:
The derivative of the Bezier curve with respect to the value ‘t’is
From which it can be finished that the tangents to the curve at P0 and P2
intersect at P1. While
‘t’increases from zero to one, the curve departs from P0 in the direction of P1,
then turns to land at P2 from the direction of P1.
The following equation is a second derivative of the Bezier curve with respect
to ‘t’:
For several choices of P1 and P2 the Bezier curve may meet itself.
Any sequence of any four dissimilar points can be changed to a cubic Bezier
curve that goes via all four points in order. Given the beginning and ending
point of a few cubic Bezier curve, and the points beside the curve equivalent to t
= 1/3 and t = 2/3, the control points for the original Bezier curve can be
improved.
The following equation represent first derivative of the cubic Bezier curve with
respect to t:
The following equation represent second derivative of the Bezier curve with
respect to t:
1. Properties Bezier curve
· The Bezier curve starts at P0 and ends at Pn; this is known as ‘endpoint
interpolation’property.
· The Bezier curve is a straight line when all the control points of a cure are
collinear.
· The beginning of the Bezier curve is tangent to the first portion of the
Bezier polygon.
· A Bezier curve can be divided at any point into two sub curves, each of
which is also a Bezier curve.
· A few curves that look like simple, such as the circle, cannot be expressed
accurately by a Bezier; via four piece cubic Bezier curve can similar a circle,
with a maximum radial error of less than one part in a thousand (Fig.2.8).
2. Construction of Bezier curves
(i) Linear curves:
ii. Coons Patch
The sculptured surface often involve interpolation across an intersecting
mesh of curves that in effect comprise a rectangular grid of patches, each
bounded by four boundary curves. The linearly blended coons patch is the
simplest for interpolating between such boundary curves. This patch definition
technique blends for four boundary curves Ci(u) and Dj(v) and the corner points
pij of the patch with the linear blending functions,
iii. Bicubic Patch
The bi-cubic patch is used for surface descriptions defined in terms
of point and tangent vector information. The general form of the
expressions for a bi-cubic patch is given by:
v. B-Spline Surfaces
The B-spline surface approximates a characteristics polygon as shown and
passes through the corner points of the polygon, where its edges are tangential
to the edges of the polygon
This may not happen when the control polygon is closed
A control point of the surface influences the surface only over a limited
portion of the parametric space of variables u and v.
The expression for the B-spline surfaces is given by
Boundary representation method (B-rep) and Constructive Solid Geometry
(CSG and C-rep)
Solid Modeling Techniques
The various methods for representing the solids are:
1. Half-space m ethod
2. Boundary rep resentation method (B-rep)
3. Constructive solid geometry (CSG and C-rep)
4. Sweep repres entation
5. Analytical solid modeling (ASM)
6. Primitive inst ancing
7. Spatial partiti oning representation
a. Cell d ecomposition
b. Spatial occupancy enumeration
c. Octree encoding
Boundary representation method (B-rep)
Euler’s formula
Euler – Poinc are Law for closed objects : F – E + V – L = 2 (B – G)
Euler – Poinc are Law for open objects : F – E + V – L = B – G
Some Euler Operations
Solid Model Generation using B-rep
Advantages of b-rep
O Appropriate to construct solid models of unusual shapes
O Relatively simple to c onvert a b-rep model to wireframe model
Disadvantages of b-rep
O Requires more storage
O Not suitable for applications like tool path generation
O Slow manipulation
GEOMETRIC MODELING
1. What are the two types of equations for curve representation?
(1) Parametric equation x, y, z coordinates are related by a parametric
variable (u or θ)
(2) Nonparametric equation x, y, z coordinates are related by a function
Example: Circle (2-D)
2. Name some types of curves used in geometric modelling.
Hermite curves
Bezeir curves
B-spline curv es
NURBS curv es
3. What are the desirable properties of Bezier Curve?
11. Catalog Techniques In Surface Modelling.
i. Surface Patch
ii. Coons Patch
iii. Bicubic Patch
iv. Be’zier Surface
v. B-Spline Surfaces
12. What are the Solid Modeling Techniques?
The various methods for representing the solids are:
1. Half-space method
2. Boundary representation method (B-rep)
3. Constructive solid geometry (CSG and C-rep)
4. Sweep representation
5. Analytical solid modeling (ASM)
6. Primitive instancing
7. Spatial partitioning representation
a. Cell decomposition
b. Spatial occupancy enumeration
c. Octree encoding
13. Write short note on Be’zier Surface.
The Be’zier s urface formulation use a characteristic polygon
Points the Be zier surface are given by
14. Write any topological te rms used Boundary representation method
(B-rep).
Vertex (V) : It is a unique point (an ordered triplet) in space
Edge (E): It is finite, non-self intersecting, directed space c urve bounded by
t wo vertices that are not necessarily distinct
Face (F) : It is defined as a finite connected, non-self-intersecting, region of
a closed oriented surface bounded by one or mor e loops
Loop (L) : It is an ordered alternating sequence of vertices and edges
Genus (G) : It is the topological name for the number of handles or through
holes in an object
Body/Shell(B) : It is a set of faces that bound a single connected c losed
volume. A m inimum body is a point
15. What is called singular body in b-rep?
A minimum body is a point; topologically this body has one face, one vertex,
and no edges. It is called a seminal or singular body
16. Sketch some open polyhedral objects used in B-rep.
17. Write Euler’s formula for open and closed objects used in b-rep.
Euler – Poincare Law for closed objects :
F – E + V – L = 2 (B – G)
Euler – Poincare Law for open objects :
F – E + V – L = B – G
18. What are Advantages and Disadvantages of b-rep?
Advantages
O Appropriate to construct solid models of unusual shapes
O Relatively simple to convert a b-rep model to wireframe model
Disadvantages of b-rep
O Requires more storage
O Not suitable for applications like tool path generation
O Slow manipulation
19. How solids are created using CSG?