Skip to main content

lower_product_net

Function lower_product_net 

Source
pub fn lower_product_net(
    session: &mut LoweringSession<'_>,
    product: EntityId,
) -> GeometryResult<Option<NetLowering>>
Expand description

Lower product’s Body with every voiding opening subtracted.

Returns Ok(None) when the product has no Body, exactly as the gross path does; openings of a body-less host have nothing to cut. The same as lower_product_net_with with NetOptions::default.

§Errors

Any error lowering the host’s own Body is returned as is, and so is a host Body that contains no solid when it has openings to cut. A failure on an opening – its Body does not lower, it has no Body, it holds non-solid geometry, or it names the host itself – is GeometryError::OpeningNotSubtracted naming the opening.