question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mesh volume - inconsistent results?

See original GitHub issue

Hi Marco,

I’m using mesh.volume() to compute the volume occupied by a mesh, but I’m getting weird results.

The mesh in question is the red one image

First probel is that it says that its volume is 622281333.333 which is way larger than what I’d expect (that should be about 62 cubic centimeters, but the mesh represents an object that is at max a few hundred micrometers in width so that can’t be right).

The weird thing is that if I use cutWithMesh to only consider the part of the red mesh that is in the magenta one (and then fillHoles to close the cut mesh) I get a larger value for the volume, although the mesh is a subset of the original one:

image

Any idea what might be going on here?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
FedeClaudicommented, Mar 3, 2021

Uh okay, well good to know that the problem is with the mesh and not vedo. I like this method of visualizing the normals too, vedois so great 😃

Thanks Marco!

1reaction
FedeClaudicommented, Mar 3, 2021

CC_134_1_ch1inj.obj.zip

does this work?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Grid noise in moving mesh codes: fixing the volume ...
Current Voronoi-based moving mesh hydro codes suffer from 'grid noise'. We identify the cause of this noise as the volume inconsistency error, where...
Read more >
Mesh volume calculation accuracy? - Graphisoft Community
I am having inconsistent results in calculating volumes of cut and fill, as compared to the "2D" way of doing it by measuring...
Read more >
Grid Noise in Moving Mesh Codes: Fixing The Volume Inconsistency ...
The fix is based on the understanding that the volume exchanged between cells should be consistent with the hydrodynamical calculations. We benchmark our...
Read more >
[1603.06753] Grid Noise in Moving Mesh Codes: Fixing ... - arXiv
We identify the cause of this noise as the volume inconsistency error, where the volume that is transferred between cells is inconsistent ...
Read more >
Problems with volume defining - Forums - CFD Online
I'm new to using ANSA and I'm having problem with defining volume for volume mesh. It's an external aero case. Model has some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found