Skip to main content

body_description_for

Function body_description_for 

Source
pub fn body_description_for(
    model: &Model,
    units: &UnitScale,
    product: EntityId,
    purpose: RepresentationPurpose,
) -> GeometryResult<Option<BodyDescription>>
Expand description

Describe the representation of product selected for purpose.

Like body_description for any purpose: the items of the selected representation, mapped items resolved. Ok(None) when the product has no representation for purpose; another purpose’s representation is never substituted. A tessellated item also carries its exact BodyItem::bounds, which refuses by name a face set lowering would refuse. Kernel-free: available with --no-default-features.