Skip to content
For software developers · 3D InterOp SDK

Convert STL to XCGM in your application

3D InterOp is a CAD interoperability SDK that lets your software read STL files and write XCGM, writing the STL facets as faceted geometry, since STL stores triangles rather than solids.

Spatial does not offer an online converter or a desktop conversion app. 3D InterOp is a component that software vendors embed in their own products.

  • Reads STL · Writes XCGM
  • Triangle mesh → faceted B-Rep
  • C++ / C# APIs
bracket.stlSTL · triangle mesh
Your application
3D InterOp SDK
STL readerHealingXCGM writer
part.xcgmXCGM · exact B-Rep

STL to XCGM at a glance

STL stores triangles; XCGM is an exact-geometry format. The mesh is written as faceted geometry: 3D InterOp doesn’t rebuild smooth surfaces from triangles.

STL (source)XCGM (target)
Full nameStereolithographyCGM native file
Standard / ownerOpen formatDassault Systèmes / Spatial (CGM Modeler)
File extensions.stl.xcgm
GeometryTriangle meshExact B-Rep
Assemblies / structureNoYes
PMINoneSemantic (read)
3D InterOp supportRead and writeRead and write

What's preserved, what changes

Here is what your application can expect to carry across from STL to XCGM.

  • Changes
    Faceted geometry
    STL stores triangles, so the XCGM file holds faceted bodies, not solids. 3D InterOp doesn’t rebuild exact B-Rep from a mesh.

Why software vendors add STL to XCGM conversion

Hand models to kernel-based applications

Many CAD, CAM and CAE applications are built on the XCGM kernel. Writing XCGM gives them exact geometry they can load without another translation step.

Downstream modeling and analysis

An exact XCGM B-Rep can still be edited, meshed or machined by downstream tools, which a tessellated export would not allow.

Exchange within one ecosystem

Partners whose tools share the XCGM kernel often prefer to exchange XCGM files directly.

Things to check before you ship

  • Written XCGM versions: R2012 to 2025 1.0.
  • PMI and miscellaneous data aren’t written to XCGM.
  • Supported STL input: any STL version.
  • Validate a sample of translated files in the target system your users actually work with.

Working with Spatial was a real milestone for us: Thanks to the powerful 3DInterOp library, we were able to successfully bring our complex CAD-based solutions to the cloud while remaining flexible to meet individual customer requirements. For us, Spatial is not just a technology partner, but a true enabler of our product strategy.

Dr. Arno Michelis, Founder, Simus Systems

Read the Case Study

About the formats

  • Source format

    What is an STL file?

    STL describes a 3D surface as a set of triangles, with no units, materials or assembly structure. Its simplicity makes it the usual input for 3D printing.

  • Target format

    What is an XCGM (.xcgm) file?

    XCGM is the native file format of the CGM geometric kernel, used by CGM Modeler and Dassault Systèmes applications. It stores exact B-Rep geometry.

Frequently asked questions

No. STL stores triangles, and 3D InterOp writes them to XCGM as faceted geometry. It doesn’t rebuild exact B-Rep from a mesh.

No. PMI and miscellaneous data aren’t written to XCGM.

STL files store no units, so the 3D InterOp STL reader assumes millimeters. Agree on the unit with the application that wrote the file.

3D InterOp reads any STL version, as visualization data.

3D InterOp writes R2012 to 2025 1.0.

Yes. 3D InterOp reads and writes both formats, so XCGM to STL is supported too.

  • Building software that needs to convert STL to XCGM?

    3D InterOp is an SDK that lets your application read STL and write XCGM alongside 30+ CAD and BIM formats.