pub fn lower_product_layers(
session: &mut LoweringSession<'_>,
product: EntityId,
cut: &LayerCut,
body: LayerBody,
) -> GeometryResult<Option<LayeredLowering>>Expand description
Split product’s Body by cut: one exact part per layer.
Ok(None) when the product has no Body. The parts are exact nodes in the
session’s graph; compile them with the compile feature’s
compile_product_layer_meshes_with.
§Errors
GeometryError::Degenerate naming product when the cut is invalid (a
normal that is not finite or not of unit length, fewer than two
boundaries, a boundary that is not finite or is smaller than the one
before it) or no layer has thickness. A net body that falls back to world
coordinates is GeometryError::Unsupported. Any error lowering the Body
is returned as is, including the net refusals of lower_product_net.