Circle Circle

john's Avatar

john

31 Jan, 2023 11:29 PM

Another new node: circle_circle

The circle_circle node finds the intersection points between two circles.

  • If the circles overlap, it will return two points
  • If the circles are tangent (touch in one spot), it will return one point
  • No points will be returned if:
    • the circles do not overlap or touch
    • the circles coincide (or have centers less than .01 pixels apart)
    • either circle has a diameter less than .01

Thanks to Jared Updike for the algorithm: https://gist.github.com/jupdike/bfe5eb23d1c395d8a0a1a4ddd94882ac

Enjoy! Circle_circle will be included in the next release of the Cartan Node Library. Please comment and share things you make with this or issues you encounter.

John

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • circle_circle_screenshot.png 316 KB
  • circle_circle_demo.ndbx.zip 3.64 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

17 Jun, 2024 02:26 PM
15 Jun, 2024 01:44 PM
08 Jun, 2024 09:05 AM
08 Jun, 2024 09:00 AM
04 Jun, 2024 04:37 AM