Extended functionality related to volume calculation
-
m_volume
added intoGeoShape
-
volume(int npoints)
User can now specify the number of random points to be used for estimation the volume, the default is 1M points
-
getVolumeValue()
,setVolumeValue()
First method just returns current value of m_volume
, second method sets m_volume
isPolyhedron()
Returns true
if all constituents of the shape are polyhedra, false
otherwise
getNoConstituents()
Returns total number of constituents
- Volume of
GeoShapeUnion(A,B)
is now calculated as:
A.volume() + B.volume() - GeoShapeIntersection(A,B).volume()
- Volume of
GeoShapeSubtraction(A,B)
is now calculated as:
A.volume() - GeoShapeIntersection(A,B).volume()
Merge request reports
Activity
added 5 commits
-
3e0d41f5...d54baac6 - 4 commits from branch
main
- 5c651571 - Merge branch 'main' into evc/volume2
-
3e0d41f5...d54baac6 - 4 commits from branch
Please register or sign in to reply