How can I get the point from its parameter?
Is there any class or method that takes the parameter as an argument and returns the point of that parameter.
Fotis Sioutis Mon, 08/04/2008 - 16:58
Do you mean that you need the point defined by the parameter on an Edge ? If yes then try the following:
Mon, 08/04/2008 - 16:58
Do you mean that you need the point defined by the parameter on an Edge ? If yes then try the following:
Standard_Real aFP, aLP, aP;
gp_Pnt aResultPnt;
Handle(Geom_Curve) aCurve = BRep_Tool::Curve(TopoDS::Edge(theEdgeShape), aFP, aLP);
aP = aFP + (aLP - aFP) * Parameter;
aResultPnt = aCurve->Value(aP);
The Standard_Real "Parameter" value is the parameter clamped to 0 -> 1 parametric space.
The gp_Pnt "aResultPnt" is your result.
Mon, 08/04/2008 - 17:32
Yes,thank you for your help Fotis..