User Profile

Collapse

Profile Sidebar

Collapse
NunoMPG
NunoMPG
Last Activity: Jul 23 '12, 09:49 AM
Joined: Jun 12 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • NunoMPG
    replied to Detection of intersecting circles on python
    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...
    See more | Go to post

    Leave a comment:


  • NunoMPG
    started a topic Detection of intersecting circles on python

    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...
    See more | Go to post
No activity results to display
Show More
Working...