How do you determine the intersection of four or more planes?
Is there a simple trick to this?
I want to be able to create an primitive object (sphere, cube, piramid, …) only using the plane equotations of the faces of those objects… (like QBSP does)
I thought I had to determine
- intersections of two planes = line
- intersections of those lines = vertexes
- use the vertexes to create the polygon-data
I tried this by hand (i took me about an hour or so) on 6 planes ( a cube). So it does work… on a cube, but not on a cylinder, because you have to know wich planes cross wich
Or am i mistaken?