Continuation of Perpendicular Vector Question

graham_lock
graham_lock Member Posts: 277 PRO
edited October 2024 in FeatureScript

Hi,

I inadvertently marked the original question as answered and couldn't see how to unmark it - is there a way?

To continue with the help provided by @NeilCooke …

I've created a test document which allows switching between tangential and perpendicular tracking.

This has generated another question:

  1. Tangential tracking works fine if the curved edge is generated via a spline but if generated via an arc the profile is drawn outboard of the edge. This can be corrected by changing

line 126:

boxPlane = plane(edgeTangentLine.origin, -Y_DIRECTION, edgeTangentLine.direction);

to

boxPlane = plane(edgeTangentLine.origin, Y_DIRECTION, edgeTangentLine.direction);

but then spline generated curves are incorrectly calculated?

https://cad.onshape.com/documents/a210980f37f6eb8934643f1d/w/c438d98168a82355ea5d0764/e/f4d243419a7ec6ec132347ac

Any further help appreciated.

Thank you.

Best Answer

Answers