Flowalongsrf command

I need write myself flowalongsrf command.
the different bettween my flowalongsrf command.and rhino’s flowalongsrf is :
my “flowalongsrf” can set a direction to flow.
such as on_vector(0,0,1) or just using the surface’s normal directon.
how can I write this command ,please give me some ideas.
thanks very much

To “flow along a surface” using the Rhino C++ SDK, you will need to create a CRhinoSporphSpaceMorph space morph object and then call either CRhinoObject::Morph or CRhinoDoc::MorphObject. See rhinoSdkSpaceMorph.h for details.

Let me know if you need an example.

yes I need a example ,thanks very much

Here you go:

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

1 Like

sometimes wen i read this forum i think you must be Einstein to work with Rinho… don,t get me wrong
i love the program in basic without all the difficult formulas and till until now i can do everything i want …
but sometimes its frustrating to read all this and understand-:0

Hi @dale,

That link no longer works. Has it moved? Can you please post the example here?

Thanks!

Edit: Never mind, I believe this is the new location: