Hi all;
I want to orienting objects on mesh with c++ , but I cant no found the vertex when I pick point on mesh, cant anybody give me a sample?
Hi Suc,
Here is a simple example that might get you started:
https://github.com/mcneel/Rhino5Samples_CPP/blob/master/SampleCommands/cmdSampleOrientOnMesh.cpp
For picking points on a mesh, you can also use the RhinoGetPointOnMesh
function. See rhinoSdkMeshUtilities.h for details. Here is an example of its usage:
https://github.com/mcneel/Rhino5Samples_CPP/blob/master/SampleCommands/cmdSampleGetPointOnMesh.cpp
– Dale
Think you@dale, it is very helful.