Forum archiveIssue archiveOther usage issues

Archived discussion

Arc-length distance

Other usage issuesThu, 12/04/2008 - 01:393 replies

Browse this forum
QuestionAuthor

The curve is known and one point on the curve is also known. Then How to get another point on the curve which keeps a constant arc-length distance(not Euclid distance) with the known point?
Is there anybody who knows how to carry out in OCC?
Thanks a lot.

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

Hi Author,
First, project the point to the curve to know its parameter, using GeomAPI_ProjectPointOnCurve. Then you can use GCPnts_AbscissaPoint to measure distances and find parameters along the curve.
Commenter-1

02Author

Thanks for the reply. If the known point is in somewhat middle of curve, sometimes there should be two solutions, right? How to get these two solutions? (GCPnts_AbscissaPoint seems to get only one solution.) Thanks again.

03Commenter-1

AbscissaPoint gives one solution. It is right. You select the side on which to find solution by using the sign of distance (parameter Abscissa).