Skip to main content

volume_difference

Function volume_difference 

Source
pub fn volume_difference(
    mesh: &Triangulation,
    model: &Model,
    shape: &Shape,
    cell: f64,
    tol: Tolerances,
) -> OgeomResult<Vec<Region>>
Expand description

The regions where mesh, a scan, and the solid shape differ, on a grid of cells cell wide; see the module documentation.

Regions come largest first, equal volumes in the grid’s order.

§Errors

OgeomError::Construction if cell is not a positive distance, if shape is not a solid or a closed shell, or if a hole of the scan cannot be filled, as Editable::fill refuses. OgeomError::NullObject if the scan has no triangles. OgeomError::NotDone if the solid’s mesh misses its chord. OgeomError::Range if the grid would have more than u32::MAX nodes along an axis. As Bvh::build for a scan with a vertex that is not finite.