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;
Mon, 09/19/2005 - 11:48
I want to know too
thanks
Mon, 09/19/2005 - 13:18
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