algorithmic modeling for Rhino
Hi Brendon,
NurbsSurface has a Points property which provides access to the control-points. You can both get and set control-points via NurbsSurface.Points. A control-point can have a weight assigned to it, so it would seem this is possible. But I've never tried this before so I'm not certain.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hey Brendon,
how are you?! It's been a while!
Thought it was a nice idea so I gave it a shot.
Don't know what you were planning to do so I just created a simple example with an attractor point.
One thing: it doesn't seem to work when all weights of the InputSrf are set to 1 (just tweak one points' weight a tiny little bit). There should be another way in .NET but I haven't found it in the RhinoCommon help.
Greetings from Amsterdam,
Marc
Hey Marc!
going well, I'm actually in Rotterdam right now for a few days but not going to make it to Amsterdam on this trip. You still at UN?
Thanks for the example. I was just about to get into it again so ill take a look at what you worked out.
hope all is good !
Brendon
This must be a bug, Rhino itself uses different kinds of control-point, but we've been trying to make RhinoCommon work just as the Weight command in Rhino.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
I just checked in changes to this. The next release of Grasshopper and RhinoCommon for Rhino5 will treat Surface control-points in the same way as Curve control-points. I.e. you will no longer have to worry about adjusting the location based on the weight.
I realize this will break existing code, sorry.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by