I need to know which algorithm is used in bm.calc_volume() (https://docs.blender.org/api/blender_python_api_2_67_release/bmesh.types.html#bmesh.types.BMesh.calc_volume) or which theorem is based on. It only says it's based on face normals and I haven't been able to find more information.

It would be also useful if someone could help me to find its code.

  • 1
    $\begingroup$ This might help. On page two: chenlab.ece.cornell.edu/Publication/Cha/icip01_Cha.pdf $\endgroup$
    – yann
    Sep 10, 2017 at 15:03
  • $\begingroup$ Thank you! But do you know if this is the one that Blender uses? $\endgroup$
    – Zavaroski
    Sep 10, 2017 at 16:20
  • $\begingroup$ No, i don't know that, sorry $\endgroup$
    – yann
    Sep 10, 2017 at 17:19
  • $\begingroup$ search for BM_mesh_calc_volume on bmesh source code $\endgroup$
    – batFINGER
    Sep 12, 2017 at 12:56
  • 1
    $\begingroup$ Uses the method outlined in link given by @yann .Tessellates the faces, then sums the tetrahedrons. $\endgroup$
    – batFINGER
    Sep 13, 2017 at 9:22


You must log in to answer this question.

Browse other questions tagged .