CRhinoGetPlane

Hi,

I would like to customize the _Mirror command (in a C++ plug-in).
Is there a way to reuse the plane picking part ?

Thanks,
Jean

What part of the plane picking part of the Mirror command is interesting to you. I believe the plane picker is just a CRhinoGetXform-derived class that dynamically draws the mirror objects.

Perhaps I need more information…

What I aim is quite the same behavior than Rhino _Mirror command except that:

  1. the object’s selection process is different,
  2. the transformation is different (but, like the mirror transformation, mine can be computed from a ON_Plane).

So, the whole plane picking may be interesting to me (default picking, 3Points picking and axes options). But I’m more interested in 3Points picking (as the others look easier to implement).

Let me know if this helps or not.

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

Yes, it does. I’ll adapt it because:

  1. I want it to work with Rhino 4 (so without CRhinoTransformCommand).
  2. My transformation depends on the picked plane AND the object to transform (it’s a bit more complicated than what I told you).

But the plane picking is quite clear now.

Thanks very much, Dale.