just took a look in the sdk looking for the Rhino command "patch".
And this is what I found:
Public Function RhinoCreateEdgeSrf(ByRef curves As array) As OnBrep
Since I haven't started to learn how to write VB-code yet, I just wonder if someone could tell me if RhinoCreateEdgeSrf does the same as "patch" - that is, creates a surface from the selected edges.
In rhinoscript as well we have to run a rhino.command("_patch") because it is not an SDK function, but a function based on several SDK commands. This would be a good candidate for a vb component calling the rhino command.
For my definition I don't need to automatically bake geometry. I manually bake my curves, use the Rhino Patch command and then reference that back into GH. Would have been nice to be able to use Patch though..
Hey Lars...
I've run into the same problem today and wrote a vb component that creates a patch with help of the app.RunScript
the vb component then returns the created patch that you can go on with in GH...
VB_patch.ghx
-bakes input Curves and runs the Patch command
-finds the last created object and returns it from the component.
- It also gives the object a name that I can find back later
- in the next run it will first delete the objects with that name that are already there to prevent pushing new patches into rhino every time...
VB_patch_2.ghx
is a bit simplified without deleting the ones already created
Hi Marc,
coll work!
In rhino it is possible to add also points and surface edges.
How it is possible to put geometry into inputList(CrvList now) and then fork this into components, like points, curves, etc.
Best!
Dimitry