1. The document describes clipping a line segment against a 3D right parallelepiped.
2. It provides the plane equation that defines the parallelepiped and converts the line segment into parametric equations.
3. These equations are substituted into the plane equation to obtain a single equation that is solved for the parameter t, giving the conditions for when the line intersects each plane of the parallelepiped.
Download as DOC, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
27 views
Clipping Against Three Dimensional Parallelpiped
1. The document describes clipping a line segment against a 3D right parallelepiped.
2. It provides the plane equation that defines the parallelepiped and converts the line segment into parametric equations.
3. These equations are substituted into the plane equation to obtain a single equation that is solved for the parameter t, giving the conditions for when the line intersects each plane of the parallelepiped.
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1
9597-1-6E AID: 1112 | 15/06/2014
Clipping against three-dimensional parallelepiped
Right parallelepiped is correspodig to a o-ho!ogeeo"sl# scaled c"$e %hich !ight perhaps ha&e $ee rotated' All sides o( right parallelepiped are rectagle' E&er# side o( a right parallelepiped is de(ied as per a plae 0 ax by cz d + + + = %herei a) b) c ad d are ideti(ied coe((iciets' *o sol&e this) a e+"atio o( lie seg!et has to $e cosidered i the (or! o( para!etric e+"atio %hich is as (ollo%s: 1 2 , - ,1 - ) .0)1/ P t t P tP t = + 0ere) 1 1 1 1 , ) ) - P x y z = ad 2 2 2 2 , ) ) - P x y z = *he lie seg!et ca $e clipped agaist the separate edges o( right parallelepiped thro"gh (idig those poits %here lie coicide %ith each side' 1# e2padig the e+"atio o( lie oe ca get the (ollo%ig e+"atios (or each distict co!poet as (ollo%s: 1 2 1 2 1 2 , - ,1 - , - ,1 - , - ,1 - x t t x x y t t y y z t t z z = + = + = + 3o%) these e+"atios o( co!poet ca $e s"$stit"ted i the plae e+"atio 0 ax by cz d + + + = 4ol&ig the e+"atio i t (or! oe ca get the (ollo%ig e+"atio: , - , - , - 0 ax t by t cz t d + + + = 1 2 1 2 1 2 ,1 - ,1 - ,1 - 0 a t x x b t y y c t z z d + + + + + + = *a5ig o"t t) %e o ca get the (ollo%ig a(ter sol&ig the a$o&e e+"atio: 1 1 1 2 1 2 1 2 1 , - , - , - ax by cz d t a x x b y y c z z
= + + *he clippig ca $e per(or!ed as per the coditios !et i e2ercise 1'4 Accordig to that) 6 sides o( clippig ca $e per(or!ed that are to $e origiated (ro! the &ertices l#ig o the sides'