Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculation of circles
#10
There is a special case, when r1 + d - r2 == 0, it will fail to compute m, n and raise an exception. Instead of that, it should return [k, k]. This is the case when the first circle is inside the second disk and tangent to the second circle.

You could implement test with Python instead of Autocad. It suffices to check that the intersection points are at distance r1 from the first center and at distance r2 from the second center.
Reply


Messages In This Thread
Calculation of circles - by frohr - Jun-10-2022, 01:53 PM
RE: Calculation of circles - by Gribouillis - Jun-10-2022, 02:03 PM
RE: Calculation of circles - by frohr - Jun-10-2022, 02:15 PM
RE: Calculation of circles - by Gribouillis - Jun-10-2022, 02:41 PM
RE: Calculation of circles - by frohr - Jun-10-2022, 02:57 PM
RE: Calculation of circles - by Gribouillis - Jun-10-2022, 05:23 PM
RE: Calculation of circles - by frohr - Jun-10-2022, 06:03 PM
RE: Calculation of circles - by Gribouillis - Jun-10-2022, 06:47 PM
RE: Calculation of circles - by frohr - Jun-11-2022, 05:54 PM
RE: Calculation of circles - by Gribouillis - Jun-11-2022, 08:57 PM
RE: Calculation of circles - by frohr - Jun-12-2022, 10:23 AM
RE: Calculation of circles - by Gribouillis - Jun-12-2022, 12:42 PM
RE: Calculation of circles - by frohr - Jun-28-2022, 05:58 PM
RE: Calculation of circles - by deanhystad - Jun-28-2022, 06:17 PM
RE: Calculation of circles - by frohr - Jun-28-2022, 07:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to detect irregular circles in python with opencv johansigaran 4 3,819 May-01-2020, 02:07 AM
Last Post: johansigaran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020