a question

I have a Curve, and it has a vertex on it.
I know the first and last value of the curve.
and how can i get the vertex position value as
standard_real?

Thnaks in advance

CORDIER's picture

Try to project your point on this curve (Geom2dAPI_ProjectPointOnCurve),then use function "Parameter" this will give you the parametric value of your vertex. (please read the documentation to get the exact way to do it)
Good Luck
GC

Francois Lauzon's picture

Hello Jack,
try using
Standard_Real t=BRep_Tool::Parameter(vertex,edge);
Good Luck,
Francois.