DiscussionsIssue archiveOther usage issues

Archived discussion

Animate

Other usage issuesMon, 09/19/2005 - 08:222 replies

Browse this forum
QuestionAuthor

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

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

I want to know too

thanks

02Commenter-2

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