 |
|
|
Scene.org is hosted and supported by:
|
|
|
Scene.org is sponsored by:
|
|
|
|
|
 |
forum - #coders |
|
 | | Topic: | Clip Planes and Destroying Objects | | | Hi,
Iam about to undertake a final year project and I hope to investigate the use of clip planes to segment a given object into multiple new objects and disperse them.
To do this in its basic form I intend to look at applying a clip plane at the origin of the given object and rotate it about the axis varying degrees followed by a cut and generation of new verts along the cut line for each new object. Then look at ways to mesh the new face generated by the cut and also texture it.
First things first.
I have found tutorials on clip planes and there application for near and far planes and the view frustum. I cant seem to find anything on clipping the object and generating a new set of coordinates, with mesh generation to create the new face.
Any help on this would be great to get me started.
Ta | | |
| | why don't you use selfmade linear algebra to intersect your planes with the polygones of the object? | | |
| I'm not sure what you are after exactly, however some thoughts are:
1. Try searching on half space subdivision of 3d objects...a single clipping plane would in traditional terms be know as a half space.
2. Try looking up CSG (constructive solid geometry). Using clipping planes in this case is the equivalent of doing a subtraction of the half space defined by the clipping plane.
3. Try searching through binary space subdivision (BSP) trees. Again the relationship to what you are talking about is strong.
Auld | | |
| | the resulting faces would be all the edges between two clipper-generated vertices, tossed through a polygon tesselator. perhaps gluTess does a good enough job for you? | | |
|
|
|