locked
co-ordinates along a curve RRS feed

  • Question

  • I need to find the co-ordinates of points  along a curve, using a parameter that defines the position along the curve.
    • Moved by Min Zhu Tuesday, November 15, 2011 2:00 AM (From:.NET Base Class Library)
    Sunday, November 13, 2011 9:34 AM

Answers

  • When you talk about .Net, which graphics library do you use? The actual implementation would be quite different depending on your choice. Searching with keywords like "bezier2d  system.drawing" would get you started

    For the math part, you probably want to check  http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Computer_graphics if you want to draw it by yourself.



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Tuesday, November 15, 2011 5:01 PM

All replies

  • Hi ,

    Can you please elaborate your question bit  ? What type of curve is it ?   and what parameter are you passing. A parameter that defines the position on the curve is nothing but the co-ordinate. 

    -Renjith 


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Sunday, November 13, 2011 7:10 PM
  • Thanls for reply...well I'm trying to create a control using a bezier2d  curve, user-editable...I need to read off the cordinates along the curve and pass them to a function that increments a morph controller. In maxscript, you can determine the percentage along a spline and a function called 'lengthInterp()'  which returns the cordinates of a point lying on the spline at a point determiend by the path percentage( or u parameter)....I'd just like a dot net version of that function as I thought it might be more robust or faster.
    Monday, November 14, 2011 6:41 AM
  • When you talk about .Net, which graphics library do you use? The actual implementation would be quite different depending on your choice. Searching with keywords like "bezier2d  system.drawing" would get you started

    For the math part, you probably want to check  http://en.wikipedia.org/wiki/B%C3%A9zier_curve#Computer_graphics if you want to draw it by yourself.



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Tuesday, November 15, 2011 5:01 PM