Lecture 3
scheduled: Saturday, Jan 15, 2005
We discussed:
1. The CGS (Constructive Solid geometry): We follow a binary-tree approach towards the construction of a complex 3D object.
- CGS-tree (the binary tree)
- Operations: union, intersect and difference and their regularized versions.
- The essence of world co-ordinate system.
3. The practical approach -- Classification! The aim is to determine whether a point (or a curve or a surface) of interest lies IN, ON or OUT of the given solid (whose CSG-Tree we already know). The signature of the method CLASSIFY:
CLASSIFY CSG-tree * {point, curve, surface} --> {IN, ON, OUT}4. The recursive implementation of the CLASSIFY(...) method. Note that the leaves of the CSG-Tree are the primitives (and the terminating condition for the recurtion). When we reach a primitive, the native implementation of the primitive's CLASSIFY is summoned.
5. The root-operation over the two returned results (corrresponding to its two child-nodes), depends on the operation.
if X is one of the {IN, ON, OUT} then for the Regularized-Union:
(IN, X) --> IN
(OUT, OUT) --> OUT
(OUT, ON) --> ON
(ON, ON) --> {IN | ON}
Now for the last case, we use the Neighborhood-method to determine whether it's IN or ON.
The aim is to see if all the points in the epsilon-neighborhood (an open-ball of radius equalling epsilon; for epsilon being as small you can think of) of the point (under consideration, where the center of the open-ball lies) are in the interior of the resulting structure. If so, we declare that the point (under consideration) is IN the resulting structure. This method helps in Regularization.
6. The other (regularized) operations are left as an exercise.


1 Comments:
I got few questions mailed to me:
1. Whether a hallow sphere is half space or not?
2. Whether a infinite lenth cylinder is half space or not?
Answers:
#1 The 'space' word here is actually a Computational Geometry word. It actually represents a set of 3D points. It has nothing to do with the material of the 'space'. So the 'hollow sphere' is an 'object' and the 'space' inside the sphere is called a half-space.
#2. Again and 'object' is not a 'space'. You gotta differenciate between a 'region' and an 'object'.
--------
Also, it'd be convinient for me to answer you here. Please avoid sending me mails directly, for asking queries.
Post a Comment
<< Home