Unit III Nurbs and Solid Modeling
Unit III Nurbs and Solid Modeling
Unit III Nurbs and Solid Modeling
3
NURBS- Basics- curves, lines, arcs, circle and bi
linear surface. Regularized Boolean set
operations - primitive instancing - sweep
representations - boundary representations -
constructive solid Geometry - comparison of
representations - user interface for solid
modeling.
• NURBS (nonuniform rational B-"splines) are almost
exclusively used by CAD/CAM systems as the internal
representation of all geometric entities that these systems
provide.
• NURBS provide a unified approach to formulate and
represent curves and surfaces.
• NURBS provide a convenient design tool to create smooth
curves and surfaces interactively.
• The development of NURBS dates back to the late 1970s
when Boeing developed the Tiger CAD system based on
rational B-splines.
• These splines were developed by integrating the
representations of B-splines with rational Bezier curves.
• In 1983, SDRC released the first NURBS-based commercial
modeler, Geomod.
NURBS have many advantages.
• Any curve or surface can be formulated using
NURBS.
• NURBS are considered a unified canonical
representation that can define both synthetic
(Bezier, B-splines) and analytic (circles and conics)
curves and surfaces.
• The premise is that they can represent all curve,
surface, and solid entities, allowing unification and
conversion from one CAD system to another via
exchange standards (STEP and IGES).
• Their related algorithms are stable and
accurate.
• They enhance manufacturing and machining
accuracy and speed.
• They are intuitive and flexible to use in design
and geometric modeling.
• NURBS are also invariant under affine and
perspective transformations such as
translation, rotation, and projections.
• NURBS have some problems.
• The definition of simple curves such as arcs,
circles, and conics is verbose; they require more
data to define as NURBS than the traditional
way.
• For example, the traditional definition of a circle
is a center (x, y, z), radius and the circle plane
defined by a normal vector (nx, ny, nz); that is a
total of seven numbers.
• The NURBS definition requires 38 numbers.
• The loss of information on simple shapes is
another problem.
• For example, if a circular cylinder (hole) is represented by a
B-spline, some data on the specific curve type may be lost
unless it is carried along.
• Data, including that the part feature was a cylinder, would
be useful in manufacturing to identify it as a hole to be
drilled or bored rather than a Surface to
be milled.
• The improper use of the extra flexibility that NURBS offer
(such as weights, as we cover later) can produce ill-behaved
NURBS.
• Moreover, some algorithms. such as surface/surface
intersection and inverse-point solution, work better under
the non-NURBS representation.
• Nonetheless, NURBS advantages far outweigh their
disadvantages.
Basics
• The key to understanding NURBS comes from the
name itself: nonuniform (NU). Rational (R), and
B-splines (BS).
• we need to understand rational and nonuniform.
• A rational curve is defined by the algebraic ratio
of two polynomials while a nonrational curve is
defined by one polynomial.
• Rational curves draw their theories from
projective geometry.
• They are important because of their invariance
under projective transformation, that is, the
perspective shape of arational curve is a rational
curve.
• Rational Bezier curves, rational B-spline curves.
rational conic sections, rational cubics, and
rational surfaces have been formulated.
• The most widely used rational curves are NURBS.
• The formulation of rational curves requires the
introduction of homogeneous space and the
homogeneous coordinates.The homogeneous space
is four-dimensional (4D) space.
• A point in E3 with coordinates (x, y, z) is represented
in the homogeneous space by the coordinates (x*,
y*, z*, h) where h is a scalar factor. When h = l,we
obtain the point in E3.
• Thus, the homogeneous coordinates of a point in E3
is (x, y, z, 1).
• The relationship between the two types of
coordinates is obtained by normalizing h to 1.
• where Ni,k(u) are the B-spline basis functions
given by Eqs.
• wi are weights associated with the control points,
Pi, of the rational B"-spline curve.
• Each control point has an associated weight, wi
with it.
• These weights serve the same purpose as h in Eq.
3
NURBS- Basics- curves, lines, arcs, circle and bi
linear surface. Regularized Boolean
set operations - primitive instancing - sweep
representations - boundary representations -
constructive solid Geometry - comparison of
representations - user interface for solid
modeling.
Solid Modeling-Introduction
Solid Modeling (Volumetric modeling) techniques begun to develop in the late
1960s and early 1970s.
The model can also serve as a means of geometric input for finite element
analysis or even manufacturing tasks as the generation of instructions for
numerically controlled machining.
53
Use of Solid Modeling in design and manufacturing increasing due
to
Software improvements
56
UNIT
3
NURBS- Basics- curves, lines, arcs, circle and bi
linear surface. Regularized Boolean set
operations - primitive instancing - sweep
representations - boundary representations -
constructive solid Geometry - comparison of
representations - user interface for solid
modeling.
Solid Models-Primitives Approach
• Using primitive approach, one can construct the solid model of the object by
dividing it into blocks and cylinders.
58
Solid Models-Features Approach
• In feature approach the designer can create different cross sections and
extrude them.
59
Solid Entities
Primitives (building blocks) are simple basic shapes and are
considered the solid modeling entities which can be combined by a
mathematical set of Boolean operations to create the solid.
The most common primitives are:-
Block
Cylinder
Cone
Sphere
Wedge
Torus
61
Most Common Primitives
62
Primitives
Union
Intersection
Difference
63
Boolean Operations of a Block A and Cylinder B
64
65
Solid Modeling using 3D Primitives
66
UNIT
3
NURBS- Basics- curves, lines, arcs, circle and bi
linear surface. Regularized Boolean set
operations - primitive instancing - sweep
representations - boundary representations -
constructive solid Geometry - comparison of
representations - user interface for solid
modeling.
Sweep Representation
Sweeping is based on by moving a point, curve, or a surface along
a given path.
3
NURBS- Basics- curves, lines, arcs, circle and bi
linear surface. Regularized Boolean set
operations - primitive instancing - sweep
representations - boundary representations -
constructive solid Geometry - comparison of
representations - user interface for solid
modeling.
Solid Representation
• A solid model of an object is defined
mathematically as a point set S in 3-D
Euclidean space.
W bS iS cS S kS kS bS iS
Where kS is the geometric closer, which implies that the interior of the
solid is geometrically closed by its boundary.
72
Solid Model-Properties
Rigidity- shape of model is invariant and does not depend on the model location or
orientation in space.
Finiteness and Finite Describability – Size of the solid is not infinite and a limited
amount of information can describe the solid.
Boundary Determinism –
The boundary of a solid must contain the solid and hence
must determine distinctively the interior of the solid.
73
The properties of representation schemes
Domain –
Class of objects that the scheme can represent or it is the geometric
coverage of the scheme.
Validity –
Validity of a representation scheme is determined by its range, i.e.,
the set of valid representations or models it can produce.
Completeness or Unambiguousness –
This properties determines the ability of the scheme to support
analysis and other engineering applications.
Uniqueness –
Used to determine object equality.
74
Solid Representation
Representation scheme is defined as a relation that maps a valid point set
into a valid model.
75
Positional and permutational nonuniqueness
76
Other properties of representation schemes
Conciseness
Measure of the size of data a scheme requires to
describe an object.
The scheme generates compact databases, convenient
to store and efficient to transmit from one system to
another.
Ease of operation
Determines the user-friendliness of a scheme.
Efficacy
Measures how accessible a representation is by
downstream applications.
Good representation schemes should permit the use of a
wide variety of application algorithms for evaluating
various functions.
77
Various representation schemes
The nine solid representation schemes are
Half-spaces
Boundary Representation (B-rep)
Constructive Solid Geometry (CSG)
Sweeping
Analytical Solid Modeling (ASM)
Cell decomposition
Spatial enumeration
Octree encoding and
Primitive instancing
78
Algorithms
3
NURBS- Basics- curves, lines, arcs, circle and bi
linear surface. Regularized Boolean set
operations - primitive instancing - sweep
representations - boundary representations -
constructive solid Geometry - comparison of
representations - user interface for solid
modeling.
Boundary Representation (B-rep)
• It is based on the topological notion that a physical
object is bound by a set of faces.
81
• Topology – by Euler operations.
• Geometry- by Euclidean calculations.
82
• Euler operations - to create, manipulate and edit the faces,
edges and vertices.
83
Basic Elements of B-rep
84
Types of polyhedral objects
85
86
Object Faces Edges Vertices Inner Bodies Genus
No (F) (E) (V) Loop (B) (G)
(L)
4 1 6 12 8 0 1 0
2 5 8 5 0 1 0
3 10 24 16 0 1 0
4 16 36 24 2 1 0
5 11 24 16 1 1 0
6 12 24 16 0 2 0
5 7 10 24 16 2 1 1
8 20 48 32 4 1 1
9 14 36 24 2 1 1
8 9
1 7
2 3
87
Euler’s Law
F E V L 2( B G )
F E V L B G
88
Open Polyhedral Objects
89
Exact B-rep of a cylinder and a sphere
90
Approximate B-rep or Faceted B-rep
Faceted cylinder is
generated by rotating a
line incrementally about
the axis.
91
General data structure for B-rep
92
Euler Operations
93
94
Topology Creation via Euler Operators
95
96
Create the boundary model of solid S as shown in the
figure
97
98
99
Boundary Model of Solid S
100
Rotational Sweep Boundary Model
101
Advantages of B-rep
Disadvantage
102
UNIT
3
NURBS- Basics- curves, lines, arcs, circle and bi
linear surface. Regularized Boolean set
operations - primitive instancing - sweep
representations - boundary representations -
constructive solid Geometry - comparison of
representations - user interface for solid
modeling.
Constructive Solid Geometry (CSG)
CSG and B-rep schemes are very popular schemes and best
understood representations so far.
Half-spaces
It is a basic representation scheme for bounded solids. By
combining half-spaces (using set operations) in a building
block fashion, various solids can be constructed.
105
Bounded and Unbounded Primitives
106
Data Base of CSG
• The Database of CSG model stores its topology and
geometry.
107
Graph
• A graph is defined as a set of nodes connected by a set of
branches or lines.
• Each branch in a graph is specified by a pair of nodes.
• The set of nodes is A, B, C, D, E, F , G
• The set of branches or pairs is
108
Directed Graph or Digraph
A, B , A, C , C, B , B, E, F , B, B, G, D, C, E, C
109
Path in Digraph
Each node in digraph has an
Indegree (number of arrow heads entering the
node)
If the start and end nodes of a path are the same, the path is a cycle.
110
Tree
• A tree is defined as an acyclic digraph in which only a single
node, called the root, has a zero indegree and every other
node has an indegree of one.
• This implies that any node in the tree except the root has
predecessors or ancestors.
111
Binary and Inverted Binary Tree
• If the ordered tree has two descendants, the tree is called a
binary tree.
Any node in a tree that does not have
descendants, that is, with an out degree
equal to zero, is called a leaf node
(D,E,F,G).
113
Typical solid and its primitives
A block and a cylinder primitive are enough to create CSG model of the solid.
114
• A user can construct the CSG model using the following steps:
B1= block positioned properly
B2= block positioned properly
B3= block
B4= B3 moved properly in X direction
C1= cylinder positioned properly
C2= C1 moved properly in X direction
C3= cylinder positioned properly
C4= C3 moved properly in X direction
115
S1 B1 *B3
S 2 S1 *C1
S3 S 2 *C3
S 4 B2 *B4
S 5 C2 *S 4
S 6 C4 *S5
S S3 *S6
116
CSG graph
S1 B1 *B3
S 2 S1 *C1
S3 S 2 *C3
S 4 B2 *B4
S 5 C2 *S 4
S 6 C4 *S5
S S3 *S6
117
Data structure of a Primitive solid
118
• Create the CSG model of solid S as shown in the figure
119
Constructive Solid Geometry
120