pub struct BodyVolume { /* private fields */ }Expand description
The certified volume one closed body encloses.
A tessellated body’s volume is widened by the band its chord deviation allows, so the interval always holds the true volume; only an exact mesh may carry exact evidence.
Implementations§
Source§impl BodyVolume
impl BodyVolume
Sourcepub fn try_new(
object: ObjectId,
volume: VolumeInterval,
fidelity: GeometryFidelity,
evidence: Evidence,
) -> Result<Self, ProximityError>
pub fn try_new( object: ObjectId, volume: VolumeInterval, fidelity: GeometryFidelity, evidence: Evidence, ) -> Result<Self, ProximityError>
The volume of object. Exact evidence needs exact geometry, and
every piece of evidence needs a reviewable locator.
Sourcepub fn volume(&self) -> VolumeInterval
pub fn volume(&self) -> VolumeInterval
Bounds on the enclosed volume.
pub fn fidelity(&self) -> GeometryFidelity
pub fn evidence(&self) -> &Evidence
Trait Implementations§
Source§impl Clone for BodyVolume
impl Clone for BodyVolume
Source§impl Debug for BodyVolume
impl Debug for BodyVolume
Source§impl PartialEq for BodyVolume
impl PartialEq for BodyVolume
impl StructuralPartialEq for BodyVolume
Auto Trait Implementations§
impl Freeze for BodyVolume
impl RefUnwindSafe for BodyVolume
impl Send for BodyVolume
impl Sync for BodyVolume
impl Unpin for BodyVolume
impl UnsafeUnpin for BodyVolume
impl UnwindSafe for BodyVolume
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more