May I input lots of objects in the function ?
CRhinoGetPoint::Constrain ( Object_01 )
CRhinoGetPoint::Constrain ( Object_02 )
CRhinoGetPoint::Constrain ( … )
Hi Kaici,
CRhinoGetPoint only allows for constraining to a single object/geometry.
Does this help?
It is possible to make a temporary polycurve from multiple curves and constrain to the polycurve.
Then when you get a hit, you have to sort out what polycurvesegment and therefore, what curve you hit.
The polycurve segments don’t necessarily have to be continuous for this use, but don’t put a polycurve with gaps in a model.
Picking the points for AddSlash in Sweep2 is an example of that, constraining to 2 discontinuous rails.
Thank for your help, Dale!
I want to get a point from many objects.
I think it is possible to use this example( http://wiki.mcneel.com/developer/sdksamples/pickobjects ).
But, this example tell me that it is possible to get over one object.
How I know which object I see ? Using a depth variable or a distance from eye position to this point ?
Thanks ! Lowell.
This method makes me surprised.
But, my constrained object is almost the meshes, like tooth,face … .
How to transform meshes into those curves?
That method won’t work for meshes. Only curves.
I should have asked what you were trying to do first.
Do you want a 3d point that you are sure is on a mesh?
Or do you want to know what mesh the point is on?
Or what?
OK!
Originally, the purpose is drawing a point on a mesh by the cursor position.
So, I use the CRhinoGetPoint() and constrain this mesh to finish it.
Now, I want to draw a point on the meshes, but I found the parameter of constraining is only one object.
Therefore, I look for new method to overcome this problem.
The only thing I can think of is that you could try making a single temporary mesh by combining copies of the meshes and constrain to that.
Yeah, I also think the only existed method is to combine those meshes.