Skip to main content

build_annotations_with_refs

Function build_annotations_with_refs 

Source
pub fn build_annotations_with_refs(
    feature_type: &str,
    input_params: &Value,
    resolved: &ResolvedRefs,
) -> Vec<FeatureDimAnnotation>
Expand description

Build the dimension annotations for a feature, given any resolved scene references (ResolvedRefs) it needs. The primitive-solid + torus builders ignore resolved (pure params + the baked transform); extrude/revolve read the resolved profile plane / axis line and return [] when it is unavailable (an unresolved reference — see the builders). The engine resolves the profile plane from a sketch profile OR a resident solid face.