Results 1 to 2 of 2

Thread: Getting coordinates along edge of clipped planes

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

    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
    Senior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    Belmont, CA, USA
    Posts
    216

    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

Similar Threads

  1. Edge of screen coordinates
    By Caspa in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-31-2005, 12:27 AM
  2. clipped triangle outline produces unwanted edge
    By quorn in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 09-01-2004, 05:00 AM
  3. Aditional clipping planes in world coordinates
    By Dagostin in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 11-20-2002, 01:17 PM
  4. Edge Dimension or Edge Size
    By Rong Yao in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 03-11-2002, 07:20 PM
  5. Coordinates of an edge outline
    By nicky in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-06-2001, 05:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean