Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mesh Volume in Real Units (mm3) #2585

Open
santiago2389 opened this issue Oct 28, 2024 · 1 comment
Open

Mesh Volume in Real Units (mm3) #2585

santiago2389 opened this issue Oct 28, 2024 · 1 comment

Comments

@santiago2389
Copy link

I have saved a mesh of Box (24cm x 21cm x 10 cm) using Meshroom tool.
I load the mesh using Open3d and make it watertight using pyvista and pymeshfix.
Finally, I calculated the volume using pemeshfix mesh attribute volume.
But the volume is ~0.12. In real it should be 0.005 meter cube.
I have used downscale factor = 4 in depth map generation step.

Does the meshroom/alicevision provide mesh in real units? Is there any conversion factor/method for this?

@natowi
Copy link
Member

natowi commented Oct 28, 2024

Does the meshroom/alicevision provide mesh in real units?

-no, you need to calculate the scaling factor based on a known distance
or
-use https://github.com/alicevision/Meshroom/wiki/CCTAG-scaling (markers have to be in the original images)

Also note: the downscale factor is not related to the object size it is related to the compression. You have to use SFMTransform -> Additional scale -> see https://github.com/alicevision/Meshroom/wiki/Model-orientation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants