CRhinoFitPatch

Hello,
someone Can show me an example of how to implement the class CRhinoFitPatch ?
I need to create a CommandButton that executes a patch between a mesh and a curve in C ++ .
Thanks to everyone who can help me .

I just looked at the comments for the static function on CRhinoFitPatch (rhinoSdkFitPatch.h), and they seem fairly straight forward. What are you missing?

– Dale

sorry ,
I do not know C ++ , but vb . I am looking for someone who can give me some practical example
thank you

If you are working in RhinoCommon and using VB.NET, then you can use Rhino.Geometry.Brep.CreatePatch().

If you using RhinoScript, you can use the AddPatch method.

Does this help?

Hi,
in Vb

Dim arrObjects

arrObjects = Rhino.GetObjects(“Select Objects”, 4 + 32, True, False)

If IsArray(arrObjects) Then

Rhino.AddPatch arrObjects, 10, 10

End If

but I must implement this in Visual c++ .

I hope someone can help me with “” practical example “” :smile:

I’m not sure this is ‘practical’, but here is a sample.

https://github.com/mcneel/Rhino5Samples_CPP/blob/master/SampleCommands/cmdSamplePatch.cpp

Thank you dale ,
you are a great man :grimacing: