Grasshopper

algorithmic modeling for Rhino

i have doubt in parametric curve  what is meant by segment number and parameter value 

its always shows zero for ellipse

one for parabola 

let me know this there in my code 

Views: 374

Replies to This Discussion

I do not understand. What code where?

Curves can consist of several 'spans', which is mostly a nurbs derived property. Spans tend to be smooth in the interior but they may be less continuous when they connect to other spans. PolyCurves also may have segments, but a parabola is not typically a PolyCurve, it's a conic.

code means in my c++ code i have segment number variable in curve param class ... i dont know wt is does.. just take a point and return curve param values for ellipse its returning 0 ..i.e segment number is returing 0.

Can you post the relevant part of the code?

its complicated . its using several classes ..... can u tell me parobala will have segments

I cannot tell you without the curve or without the code.

tom i will show ..thanks

return (-(m_PCurve2->X (v, off2) - m_PCurve1->X (u, off1)) *
m_PCurve2->YP (v, off2) + (m_PCurve2->Y (v, off2) -

what is this formula for please let me know

Since I don't know the types of m_PCurve2, v, off2, u, off1 I cannot tell you anything useful.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service