Check if point lies on curve

Check if point lies on curve

dawid.deptula
Contributor Contributor
925 Views
2 Replies
Message 1 of 3

Check if point lies on curve

dawid.deptula
Contributor
Contributor

How to check if a point (XYZ) lies on Curve?

0 Likes
926 Views
2 Replies
Replies (2)
Message 2 of 3

RPTHOMAS108
Mentor
Mentor

Two initial ways I can think of:

 

Use Curve.Project then compare original to projected. Be careful with arcs and ellipses i.e. point should not be on centre or ellipse foci.

There is also Curve.Distance

Solve mathematically given the equation of the curve and the knowns you have then check is within limits of curve.

 

All of the above require a tolerance value to consider the point to be near enough to be considered on the curve.

 

 

 

Message 3 of 3

dawid.deptula
Contributor
Contributor

I have found another solution. I simply check directions between Line.pktStart, pktTested and Line.pktEnd. Thanks for another approach.

0 Likes