Flowalongsrf command


#1

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


(Dale Fugier) #2

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.


#3

yes I need a example ,thanks very much


(Dale Fugier) #4

Here you go:

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


#6

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