# Find all angles between curves

## Recommended Posts

I am writing a LISP to find subtle kinks between curves. Right now I'm stuck on finding all the angles. Is there an efficient way to do this?

I'm hoping to find the angles between connected curves, including arcs and polyline curves, and then highlight (draw a red circle?) around all angles with less than 20 degrees difference (160 to 200 degrees) between the lines.

If possible I'd eventually like it to be able to automatically smooth the kinks, but I think that that part will have to come at a later time.

On a completely unrelated note, I can't stop seeing this as a cyclops.

##### Share on other sites

Smooth the kinks would require picking the control radius to make true tangential. I would go down the pline route as you would write the routine once. The maths is pretty simple check for tangent angle on end pts just draw a line from end pt to centre and get its angle. Take into account possible 180 direction. 20 degrees is a pretty high angle of non tangential.

Lee-mac has a nice pline info lsp may be a good starting point.

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.