Hi dwblas!
I believe that the function i mentioned works even when x is greater than c_x because math.hypot does the the norm of the two values passed to the function like so: sqrt((c_x-x)**2+(c_y-y)**2).
As for the piece of code you posted i will test it tomorrow and and see how it goes, but as far as i can tell it seems a good solution to compare all the circles.
tuples and lists still makes me a bit...
User Profile
Collapse
-
Detection of intersecting circles on python
Hello all!
I'm trying to build a python script to create circles, place them randomly within specific limits and the most important part is that the algorithm must be able to detect any intersecting circles and if any is found, move them to another position.
This script is to be used with ABAQUS finite element simulation package to create a laminated composite plate with embedded random fibers.
This first...
No activity results to display
Show More
Leave a comment: