I want to know too
thanks
Archived discussion
Hi,
Is it possible to move a solid along a curve as a path of movement?
Regards
Discussion
Posts are displayed in their archived order.
I want to know too
thanks
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