Replies: 2 comments 2 replies
-
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.
-
Hello again, However, I tried to binarize the merged mesh using But I noticed that the binarize() function creates a volume with different dimesions than the original mesh. I read the mesh from a binary numpy array of shape (66, 1024, 1024) and the binarised volume becomes completely different. I would like my newmesh to have the same dimesions as the original mesh for further analyses. Would this be possible with binarize()? Apologies if this sounds confusing, I've been trying to find creative ways to solve this issue. Thanks for the help! |
Beta Was this translation helpful? Give feedback.
-
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