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 3 of 3

Thread: identify sharp edges

  1. #1
    Intern Contributor
    Join Date
    Mar 2000
    Location
    England
    Posts
    57

    identify sharp edges

    Hi...

    I need to identify the sharp edges (i.e. polygons which create edges with
    sharp angles by taking dot product of normals) and store the coordinates of their
    vertices. Could anyone help me with this please...
    Do you know any example available on the Web?

    Many thanks

    Nicolas Bussard

  2. #2
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    17

    Re: identify sharp edges

    Hi, Nico!

    I know one method that used in 3D Studio Max. May be it can be acceptable for you. When 3D Studio Max need to determine sharp and smooth edges of polygons (triangles) they determine angle between normals of such polygons. If angle between normals of two joint triangles is less that some control value (control angle) than such triangles create smooth edge between them, else edge is sharp. By default control angle is 30 degrees.
    So you can use dot product of two normalised normals and if value is less than 0.866 (for 30 degree angle) - edge is sharp, else it is smooth.

    Yours, Mad Max.

  3. #3
    Intern Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    55

    Re: identify sharp edges


Posting Permissions

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