Selection Point

Hi guys,

My component need a brep (single face or multiple faces brep) as input argument. I just want to know when user select the brep as input parameter, can I read the selection point somewhere?

thank you.

Regards
Eric

    Rhino.DocObjects.ObjRef obj;
    Rhino.Input.RhinoGet.GetOneObject("Hoy!", true, Rhino.DocObjects.ObjectType.Brep, out obj);
    Point3d pt = obj.SelectionPoint();

Hi Riccardo Majewski,

Thank you for your reply. I think the when I do the plugin, your approach is correct. However, I am in the grasshopper component, so I need to retrieve the selection point after I get the brep with the function: DA.GetData(“Brep”, ref brep);
Now how could I get the selection point?

Regards
Eric