Skip to main content

decode

Function decode 

Source
pub fn decode<'a>(
    ctx: &DecodeContext<'a>,
    root: View<'a>,
) -> Result<DecodeResult, CodecError>
Expand description

Decode an NX .prt into IR and a loss report.

When DecodeContext::container_only is set, the returned IR contains source metadata and preserved streams but no typed entities. Otherwise the decoder emits supported geometry and resolvable topology. A valid container can decode successfully with no geometry, including an assembly whose geometry resides in external child parts.