Hi;
Who can provide an example of RhinoGet1RailFrames ?
HI @dale,
For example:
What’s wrong with my code.
CRhinoGetObject go;
go.SetCommandPrompt(L"Select Curve");
go.GetObjects(1, 1);
const ON_Curve* cur = go.Object(0).Curve();
double t = 0.2;
ON_SimpleArray<ON_Plane> pl;
if (RhinoGet1RailFrames(*cur, 5, &t, pl, ON_UNSET_POINT))
{
RhinoApp().Print(L"Success");
for (int i = 0; i < pl.Count(); i++)
{
ON_Circle ci(pl[i], 2);
RhinoApp().ActiveDoc()->AddCurveObject(ci);
}
}
RhinoApp().ActiveView()->Redraw();
return success;