Luke August 16, 1999, 11:06 PM 

Lennox wrote: >>Thx alot for all the info. I get everything, except how to recreate the large polygon. Can you explain how to make the large polygon to be split by all the other planes?
Sorry for the long delay....
Anyway what you want to do is first, using the plane the face will lie on, find out if the plane is more toward the x, y, or z axial plane. You can do this by finding the greatest value of the vector in the plane equation. Ax+By+CzD If A is biggest plane is more toward (or on) the xaxis If B is biggest plane is more toward yaxis If C is biggest plane is more toward zaxis
you also need to decide on some boundries for you level. So just for example we will make the boundries (1024, 1024, 1024) to (1024, 1024, 1024). This way you ensure your faces are big enough
We are going to make a square face, that lies on the plane
If the plane that the face is on is more toward the z axis, use the boundries on x and y for coords of a point on the large face. so you have points (1024, 1024, z1) (1024, 1024, z2) (1024, 1024, z3) (1024, 1024, z4)
What you need to do is calculate the z values. You can do this by plugin in the known values of x and y into the plane equation and solving for z.
If the plane that the face is on is more toward the y axis, use the boundries on x and z for the coords. Then solve for y.
If the plane that the face is on is more towrd the x axis, use the boundries on y and z for the coords, then solve for x
Once you have the four points, you can make your face, then go ahead and clip as needed.
Luke
