Hi,
I need to create a command to select ON_Arc objects. How do I use SelFilter (const CRhinoObject*)?
I didn’t find any information about SelFilter (const CRhinoObject*).
Hi,
I need to create a command to select ON_Arc objects. How do I use SelFilter (const CRhinoObject*)?
I didn’t find any information about SelFilter (const CRhinoObject*).
I have solved this problem.
bool CCommandSelectArcObjects::SelFilter(const CRhinoObject* ob)
{
const CRhinoCurveObject* crv_ob = CRhinoCurveObject::Cast(ob);
if(0==crv_ob)
return false;
const ON_Curve* crv = crv_ob->Curve();
if(0==crv)
return false;
ON_Arc arc;
if(!crv->IsArc(0,&arc))
return false;
return true;
}