pub fn compile_product_mesh_net_with<B: MeshCompiler>(
backend: &B,
model: &Model,
product: EntityId,
tolerance: Tolerance,
) -> GeometryResult<Option<NetMesh>>Expand description
Compile one product’s net Body with a caller-supplied backend.
§Cost
The success path compiles the net graph once; the backend’s own cache shares the host and opening meshes across the chain. Only a refusal pays more: the host is compiled alone, then the chain one subtraction at a time, to name the opening at fault. That is a diagnostic pass on a path that has already failed, so it trades time for a precise error rather than slowing every successful call.
§Errors
A refusal the host’s gross body alone would raise stays
GeometryError::CompilationRefused on the host. A refusal that only an
opening explains is GeometryError::OpeningNotSubtracted naming it.