Drawing Surface with C++ plugin

Hello,

I am trying to draw surface with c++ plugin like a below image, but I could not find any function for this.

image

I am trying find a function like surf in MATLAB (surf) which gets three matrix as parameters.

Hi @omidk,

You can create this in Rhino by creating a mesh that has vertex colors. You can also draw an object with false colors dynamically using a display conduit.

https://github.com/mcneel/rhino-developer-samples/blob/6/cpp/SampleCommands/cmdSampleFalseColor.cpp

ā€“ Dale

1 Like

@dale thanks a lot.

Hi @dale,
Sorry, I have one more question. Is there any way to draw surface with point cloud? I want to pass a bunch of points, and rhino fits surface on them.

Thanks

Hi @omidk,

If you points are in a uniform grid, you can use NurbsSurface.CreateThroughPoints.

ā€“ Dale

1 Like