Read XCAF for glTF / GLB output
A XCAF-to-glTF / GLB workflow connects the XCAF reader to the glTF / GLB writer. Select the model items and output representation needed by the receiving application.
Read the native XCAF document with the OCCT storage interface matching its file type. Inspect document shapes, assembly occurrences and attributes before selecting the part of the document to exchange.
Prepare a scene for glTF or GLB delivery
Choose BRep or mesh geometry according to the actual shapes in the document and the destination. Resolve assembly placements and map supported names and colors. Native document storage can contain application information that another CAD or scene format does not represent.
Map supported model items into glTF scene nodes and configure the mesh, placements and appearance for browser or application delivery. Decide whether the receiving workflow expects a GLB package or glTF with companion resources. Keep names useful for selection and inspection.
Check the glTF / GLB result
Check occurrence placement separately from shared part geometry. Validate transferred labels and attributes, and keep the source XCAF document when application-specific data or edit structure needs to be retained.
Reopen the asset in the target viewer and compare orientation, bounds, assembly placement and visible surface quality. Check material mapping and resource paths. Measure loading cost together with geometric detail so that reducing mesh size does not silently remove required features.
Discuss this conversion with the producing and receiving applications, representative files and required geometry and attributes. Compare the reader/writer catalog when a different representation is needed.