Replies: 1 comment 1 reply
-
If the meshes are noisy this might become a difficult problem... You can try with boolean operations eg: from vedo import *
cube1 = Cube().triangulate().color('r5')
cube2 = Cube().triangulate().color('g5').scale(0.99).shift(.25,0,0)
bi = cube1.boolean('intersect', cube2).alpha(0.5)
cube1.wireframe()
cube2.wireframe()
show(cube1, cube2, bi, f"Volume = {bi.volume()}", axes=1) Also check out |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
If I merge 2 objects that partially overlap using the
merge()
function, I noticed that the output ofvolume()
is the sum of their individual volumes and not the volume of the merged entity. Is there a way to measure the volume of the newly formed single entity?What i'm aiming to do:
I'm trying to measure the volume of the proportion of a mesh that is embedded within another mesh but using
cut_with_mesh()
creates non-manifold, non-closed meshes preventing me from measuring the precise volume of the embedded region. So, I'm considering merging both meshes, measuring the volume of the new entity, then subtracting the volumes of the larger mesh to get the volume of the protruding mesh and finally the volume of the embedded mesh.Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions