Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Getting coordinates along edge of clipped planes

Hybrid View

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2005
    Posts
    4

    Getting coordinates along edge of clipped planes

    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

  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    Belmont, CA, USA
    Posts
    224

    Re: Getting coordinates along edge of clipped planes

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •