Beruflich Dokumente
Kultur Dokumente
Quadric Surfaces
The implicit surface equation of the form
defines the family of quadric surfaces:
ax2 +by2 +cz2 +2(dxy+eyz+fxz+gx,+hy+jz)+k=0
Sphere
x2+y2+z2 =R2 ;orinparametricform
x=rcoscos,y=rcossin,z=rsin
Ellipsoid
2 2 2
(x/a) +(y/b) +(z/c) =1;orinparametricform
x=acoscos,y=bcossin,z=csin
Torus
[r((x/a)2 +(y/b)2 )1/2 ]2 +(z/c)2=1;or
x=a(r+coscos,y=b(r+cossin,z=csin
Copyright @ 2003 by Jim X.
Chen: jchen@cs.gmu.edu 7
Superquadrics
supperellipse: x=acoss,y=bsin s
supperellipsoid
x=rcosscost,y=rcoss sint,z=rsins
Blobby Objects
Some objects do not maintain a fixed shape, but
change their surface characteristics in certain
motions or when in proximaity to other objects.
One way to model: combinations of Gaussian
density functions, or bumps:
T
bk e
k
a k X k2 y k2 z k2
whereTisathreshold
andaandbaretoadjusttheamountof
blobbiness
Copyright @ 2003 by Jim X.
Chen: jchen@cs.gmu.edu 8
PARAMETRIC BICUBIC SURFACES
General form of cubic curve: Q(u) = U M G
where G, the geometry vector, is a constant
If we allow G to vary in 3D along some path:
G1 (t )
G (t )
Q( s, t ) S M G (t ) S M 2
G3 (t )
G (t
4 )
Then, a functional description is often tesselated
to produce a polygon-mesh approximation to the
surface (trianglular polygon patches)
For a fixed t1, Q(s, t1) is a curve because G(t1) is
constant. If Gi (t) are cubics, the surface is said
to be a parametric bicubic surface
Copyright @ 2003 by Jim X.
Chen: jchen@cs.gmu.edu 9
Hermite Surfaces
P1 2 2 1 1
P 3 3 2 1
Curve: x(u ) u 3 u2 u 1 Mh 4
R1 and Mh
0 0 1 0
R4 x 1 0 0 0
x(0,0)
P1 (t ) x(0,1)
P (t )
P1x (t ) T M h
Surface: x ( s, t ) S M h 4 , (0,0)
R1 (t ) t
R (t
4 ) x x ( 0,1)
t
Since: P1 (t ) P4 (t ) R1 (t ) R4 (t ) x T M h GHx
T
we have:
Copyright @ 2003 by Jim X.
Chen: jchen@cs.gmu.edu 10
P1 (t )
P (t )
x ( s, t ) S M h 4 S M h GHx M hT T T
R1 (t )
R4 (t )
Where
x(0,0) x(0,1) x(0,0) x(0,1)
t t
x(1,0) x(1,1) x(1,0) x(1,1)
GHx t t
2 2
s x(0,0) s
x(0,1)
st
x(0,0)
st
x(0,1)
x(1,0)
x(1,1)
2
x(1,0)
2
x(1,1)
s s st st
B-Spline Surfaces
The B-Spline bicubic formulation can be derived in exactly the same
way also. The results are: x ( s, t ) S M G M T T T
Bs BSx Bs
Normals to Surfaces
The cross product between the s and t tangent vectors of the surface
Q(s, t) results in the normal at given s and t:
Q ( s, t ) Q ( s, t )
s t
Volumes
Areas
Lines
Keypoints
formats Lines
Keypoints
add
add
Intersection
A B
Difference
Subtraction, A B, A not B
Difference is not commutative
- =
Copyright @ 2003 by Jim X.
Chen: jchen@cs.gmu.edu 27
Bottom-Up Modeling
Most modeling tools use top-down approach
Low level programming systems usually adopts
with bottom-up modeling
Spatial-partitioning representations
Spatial-Occupancy Enumeration
identical solids called voxels (volume elements) arranged in a fixed
regular grid.
Octrees: divide-&-conquer power of subdivision.
Binary Space-partitioning Trees: recursively divide space into
pairs of subspaces, each separated by a plane. Originally used in
determining visible surfaces in graphics.
Copyright @ 2003 by Jim X.
Chen: jchen@cs.gmu.edu 31
Physics-based Modeling
Modeling triangular polyhedron: all vertices
and the surrounding triangular shapes are
congruent