Grasshopper

algorithmic modeling for Rhino

curve degree is 3,control point is 5,follow the "knot=control point-degree-1",knot should be 1,but the CurveKnotCount is 7,i dont konw why.

thank you

Views: 589

Attachments:

Replies to This Discussion

Knot = Control-Points + Degree - 1

Plus, not minus.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

why i insert points on knot position in a 5 control points 3 degree curve while knots snap is openning ,i just find one position not seven,except the start and the end position.you can try.

thank you .

By the way ,you could not anwser how to match the names of variable to the input name in python battary.

thank you .

Clamped nurbs curve have duplicate knots at the start and end of the curve. So in the case of a degree=3 point=5 nurbs curve, there have to be 3+5-1 = 7 knots. Because the degree is 3, there will be 3 identical knots on end ends of the curve, so the knot vector will look something like:

0,0,0,1,2,2,2

So one at each end and one in the middle.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thank you .another question?

if i wanna write program in rhinopython.i dont know the diffirence between using the rhinosrcipt and rhinocommon.

I don't support python because I don't know it well enough. However if you're going for RhinoPython than you don't have to worry about RhinoScript. RhinoScript is a plugin for Rhino that exposes a thousand or so methods via the Windows Shell Scripting Host, most typically accessed using vbScript, though it's also possible to use jScript.

RhinoPython uses RhinoCommon but it does come with a library of methods that mimic the RhinoScript SDK. These methods are open source so you can see their implementation, but that's pretty much all I know.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

thank you for your kindness,david

i plan to learn rhinopython and rhinocommon,i wanna write battery by myself.

Thank you David! I had the same problem with knots.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service