You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using pygalmesh '0.10.6' and helpers '0.2.0'
I would like to check if two spheres collided. (Similar to test_balls_intersection() in /tests/test_volume_mesh.py/)
spheremesh1 = pygalmesh.Ball([1, 1, 1], .5)
spheremesh2 = pygalmesh.Ball([1.1, 1, 1], .5)
u = pygalmesh.Intersection([spheremesh1,spheremesh2])
mesh = pygalmesh.generate_mesh(u, max_cell_circumradius=1.0e-2, verbose=False)
vol = sum(helpers.compute_volumes(mesh.points, mesh.cells["tetra"]))
I get this error: AttributeError: module 'helpers' has no attribute 'compute_volumes'.
Is "helpers" from "pip install helpers" correct?
Is there an easier way to check if spheremesh1 and spheremesh2 intersected? (it can be at one point or multiple points)
Beta Was this translation helpful? Give feedback.
All reactions