Results 1 to 2 of 2

Thread: How can I set up the distance between the curve line (pixel) ?

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2002
    Location
    taiwan
    Posts
    17

    How can I set up the distance between the curve line (pixel) ?

    I have used the function "GL_QUADS" within the "openGL" on the VC++ to draw a curved surface.
    And finished the curved surface, but had a problem:
    The distance of curve line to line is too large.
    How can I set up the distance (pixel) between the curve line ?
    Is there any problem when I use the openGL or VC++ ?
    Or is there any function about how to solve this problem ?

    thanks a lot!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: How can I set up the distance between the curve line (pixel) ?

    Hi !

    I don't use that stuff very much, but I don't think OpenGL support what you want, yoo have to do the tesselation yourself or use an extra library that support it.

    If I understand you correct, then you want to do dynamic tesselation of the curve/surface with a minimum error value (the minimu distance between the curve and any point on the tesselated linestrip).

    Many spline/nurb libraries support this.
    (IRIT, OpenCascade, ...)

    Mikael

Similar Threads

  1. Find a cartesian line from distance of 4 points
    By __bob__ in forum OpenGL: General
    Replies: 1
    Last Post: 03-10-2016, 04:06 AM
  2. algorithm on calculating point to line distance
    By amhood in forum OpenGL: General
    Replies: 2
    Last Post: 08-23-2004, 09:04 PM
  3. Distance Point To Line
    By Andrew Jameson in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 04-21-2003, 03:17 AM
  4. How can I set up the distance between the curve line (pixel) ?
    By randychou in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 07-07-2002, 08:24 PM
  5. distance between a line and a point in 3d
    By jxu in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 03-23-2001, 09:27 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