Bresenham's Algorithm Enables The Selection of Optimum Raster Locations To Represent A Straight Line
Bresenham's Algorithm Enables The Selection of Optimum Raster Locations To Represent A Straight Line
UNIT - 3
GEOMETRIC MODELLING
wire frame, surface and solid modeling
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.
ellipses,
splines
etc.
components correctly.
must
to
interpret
complex
SURFACE MODELING
In this approach, a component is represented by its surfaces which in turn are
represented by their vertices and edges.
For example, eight surfaces are put together to create a box, as
shown in
Apart from standard surface types
available for surface modeling
(box, pyramid, wedge, dome,
sphere, cone, torus, dish and
mesh) techniques are available
for interactive modeling and
editing of curved surface
geometry.
SOLID MODELING
The representation of solid models uses the fundamental idea that a physical
object divides the 3-D Euclidean space into two regions, one exterior and one interior,
separated by the boundary of the solid. Solid models are:
bounded
Homogeneously three dimensional
Finite
There are six common representations in solid modeling.
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.
ii. Cell Decomposition: This is a hierarchical adaptation of spatial enumeration.
3D space is sub-divided into cells. Cells could be of different sizes. These simple
cells are glued together to describe a solid object.
shapes
known
as
difference
()
and
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
entities
Point Vertex
Curve, line Edge
Surface Face
Topological
Workings of CSG
CSG Example
ADD
REMOVE
INTERSEC
T
SURFACE MODELING
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 Fig..
The boundary is a collection of faces forming a closed surface
Creating a Surface
A surface can be created in several ways:
i. Creating a plane surface by the linear sweep of
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.
y = g2(x, z)
z = g3(x, y)
y = y (u)
z = z (u)
where x, y, z are co-ordinates of the points on the curve which are functions of some
parameter u and the parametric variable is constrained in the interval.
For example, a point (x, y) is located at an angle from +X axis on a circle with
centre at (0, 0) and radius = 1 can be described in parametric form as:
x = Cos
y = Sin
where is the parameter. Surfaces are described similarly for which x, y and z
are functions two independent parameters u and v.
Parametric design is very popular in computer aided design for a variety of reasons,
which are listed below:
Separation of variables
Each variable is treated alike
More degrees of freedom/control
Parametric equations can be transformed directly
Infinite slopes can be handled without computational breakdown
Easy to express as vectors
Amenable to plotting and digitizing
Inherently bounded