Any examples of RhinoGet1RailFrames

Hi;
Who can provide an example of RhinoGet1RailFrames ?

HI @suc_kiet,

The function is pretty well documented. What do you understand?

Thanks,

– Dale

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;

Hi @suc_kiet,

Let me know if this sample helps or not.

cmdSampleFrameRails.cpp

– Dale

hi @dale
It run good, thinks.