generative modeling for Rhino
Im not seeing the possibility in the SDK to either:
A. Create a surface with a set of control points, while retaining weight info
B. Manipulate the weight of the control points of a NurbsSrf
thanks for any help
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.
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,
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 !
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.
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.
I wanted to know if you find out how to create a Surface with a set if control points or not. If yes, could you please tell me how! I am struggling with that for a couple of days!