Hi all
I want to show Curvature Graph Dialog when I click on some object (curve) in my plug-in. Is this possible somehow?
Thanks
Filip
Hi all
I want to show Curvature Graph Dialog when I click on some object (curve) in my plug-in. Is this possible somehow?
Thanks
Filip
Hi @Filip,
Does this help?
CRhinoCommand::result CCommandTest::RunCommand(const CRhinoCommandContext& context)
{
CRhinoGetObject go;
go.SetGeometryFilter(
CRhinoObject::curve_object
| CRhinoObject::polysrf_object
| CRhinoObject::surface_object
| CRhinoObject::instance_reference
);
go.SetCommandPrompt(L"Select objects for curvature graph display");
go.EnableSubObjectSelect(FALSE);
go.GetObjects(1, 0);
CRhinoCommand::result rc = go.CommandResult();
if (rc == CRhinoCommand::success)
{
for (int i = 0; i < go.ObjectCount(); i++)
{
const CRhinoObject* obj = go.Object(i).Object();
if (nullptr != obj)
obj->EnableAnalysisMode(RHINO_CURVATURE_GRAPH_ANALYSIS_MODE_ID, true);
}
context.m_doc.Redraw();
}
return rc;
}
– Dale
Yes it helps. Than you so much Dale …
Just one more question how to catch a signal when the Curvature Dialog is closed?
There isn’t a way of being notified - sorry.
– Dale
thanks @dale