Back to class index
| Polyhedron::VolumeSyntaxfloat Polyhedron::Volume() const; [10 lines of code]Computes the internal volume of this polyhedron. The implementation of this function is based on Graphics Gems 2, p. 170: "IV.1. Area of Planar Polygons and Volume of Polyhedra." See AlsoWork in progress:Todo: in float Polyhedron::Volume() const: Optimize temporary copies. |