Animate

Hi,
Is it possible to move a solid along a curve as a path of movement?
Regards

DiRose's picture

I want to know too

thanks

QbProg's picture

it should not be too hard! just "move" your solid along the curve like

for (int u = Curve.FirstParameter(); u < Curve.LastParameter (); u+= (Curve.LastParameter() - Curve.FirstParameter()) NumberOfSTEPS) {
gp_Pnt Pt = Curve.Value (u);
MOVEYOURSOLIDATPOINT (Pt);
or
MOVEYOURSOLIDATPOINT (LastPoint,Pt); /* if you need a start point and end point*/
LastPoint = Pt;

}

I just do so on my programs