chapter 7
chapter 7
Chapter Seven
Representing 3D objects
1
3D OBJECT REPRESENTATION
2. Space-partitioning representation
It describes the interior properties, by partitioning the
spatial region containing an object into a set of small,
non-overlapping, contiguous solids(usually cubes).
Eg: octree representation.
POLYGON SURFACES
Many graphics systems store all object descriptions
as sets of surface polygons.
This simplifies and speeds up the surface rendering
and display of objects, since all surfaces are
described with linear equations.
Polygon descriptions are often referred to as
“standard graphics objects”.
Generally polygon surfaces are specified using;
1. Polygon table
2. Plane equations
3. Polygon meshes.
1. POLYGON TABLES
The specification of polygon surfaces using vertex
coordinates and other attributes:
Geometric data table: vertices, edges, and polygon
surfaces.
Attribute table: e.g. Degree of transparency and surface
reflectivity etc.
Geometric data table:
Every vertex is listed as an endpoint for at least 2 edges
Every edge is part of at least one polygon
Every polygon is closed
Each polygon has at least one shared edge.
WORKOUT
2. PLANE EQUATIONS
Used to determine the spatial orientation of the
individual surface component of the object.
The equation for a plane surface can be expressed in
the form
Ax + By + Cz + D=0
where (x, y, z) is any point on the plane, and the
coefficients A , B , C , and D are constants.
Let (x1, y1 , z1 ,), (x2 , y2 , z2 ), and (x3 , y3 , z3 ) be
three successive polygon vertices of the polygon.
Using Cramer's Rule
Ax1 + By1+ Cz1 + D= 0,
Ax2 + By2+ Cz2 + D= 0,
Ax3 + By3+ Cz3 + D= 0
CONT…
P1= { V1,V2,V3}
P2={ V2,V3,V5}
P3={V3,V4,V5}
CURVED SURFACES
1. Regular curved surfaces can be generated as
Quadric surfaces, eg. Sphere, ellipsoid,
super quadrics, eg. Super ellipsoids
Models
Use a combination of gaussian density functions (gaussian
bumps)
Meta-ball technique is to describe the object as being
made of density functions much like balls. Advantage here
is that the density function falls of in a finite interval.
3. SPLINE REPRESENTATIONS
A spline is a flexible strip used to produce a smooth
curve through a designated set of points.
Used to design and control the shape of complex
curves and shapes
24