DiscussionsIssue archiveOther usage issues

Archived discussion

Point Parameter

Other usage issuesMon, 08/04/2008 - 16:222 replies

Browse this forum
QuestionAuthor

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.

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

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.

02Author

Yes,thank you for your help Fotis..