PDA

View Full Version : Getting coordinates along edge of clipped planes



WT
04-16-2002, 02:58 AM
I am using clip planes to 'dissect' my 3D models and would then like to obtain the coordinates along the new edge. Can anyone tell me whether this is possible and if so how

Many thanks

Jambolo
04-18-2002, 10:52 PM
Sure. For every triangle in your model, compute the intersection of its edges and the clipping plane. For each triangle, you will get one of the following:

- no intersections -- ignore this triangle
- 1, 2, or 3 of the vertices intersect -- ignore this triangle or not (your choice)
- 2 intersections -- the line segment between them is a new edge
- 1 intersection and 1 vertex, the line segment between them is a new edge