Point Parameter

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's picture

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.

DeleDivaneeh's picture

Yes,thank you for your help Fotis..