Continuation of Perpendicular Vector Question
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:
- 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
-
It's because arcs are always computed counterclockwise whereas splines go in the direction they were drawn. Simple to fix:
Senior Director, Technical Services, EMEA0
Answers
-
It's because arcs are always computed counterclockwise whereas splines go in the direction they were drawn. Simple to fix:
Senior Director, Technical Services, EMEA0 -
That's very clean! - Thank you.
0

