Skip to content
Snippets Groups Projects

Extended functionality related to volume calculation

Merged Evgueni Tcherniaev requested to merge evc/volume2 into main
  • m_volume added into GeoShape

  • 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

Merge request pipeline #8011184 failed

Merge request pipeline failed for 5c651571

Merged by Joseph BoudreauJoseph Boudreau 9 months ago (Aug 27, 2024 5:21pm UTC)

Loading

Pipeline #8011195 failed

Pipeline failed for 11ecb3a0 on main

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading