brepjs API Reference
    Preparing search index...

    Function createAssembly

    • Create an XCAF assembly document from a list of shape configurations.

      Each shape is added as a named, colored node in the XCAF document tree. The returned AssemblyExporter wraps the live TDocStd_Document and must be deleted after use to avoid memory leaks.

      Parameters

      • shapes: ShapeOptions[] = []

      Returns AssemblyExporter

      An AssemblyExporter wrapping the XCAF document.

      exportSTEP which calls this internally to produce a STEP blob.