Skip to main content

volume_properties

Function volume_properties 

Source
pub fn volume_properties(
    model: &Model,
    shape: &Shape,
    deflection: Deflection,
    tol: Tolerances,
) -> OgeomResult<MassProperties>
Expand description

The volume a shape encloses, and how it is distributed.

ยงErrors

As surface_properties, plus OgeomError::Construction if the boundary is not closed, or is wound inward so that the volume comes out negative. Both mean the answer would be meaningless rather than merely inaccurate: the divergence theorem needs a closed, outward-oriented boundary, and without one the sum is a number with no interpretation.