BREP to GLB Converter: CAD Shape to One Mesh | MiConvert

BREP to GLB: Mesh an OpenCASCADE Shape for 3D Viewers

Upload a .brep and get a binary glTF file with a triangulated copy of every face, ready for three.js, Babylon.js or a model-viewer page. The coordinates are written as millimeters with Z pointing up, so most viewers show the part lying on its back and 1000 times too large until you rotate and scale it.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
BREP → GLB

BREP files in Google Drive?

Drive cannot preview BREP files. Open one from Drive with MiConvert to turn the model in your browser, or convert it and save the result next to the original. MiConvert for Google Drive →

From exact surfaces to a web-ready mesh

OpenCASCADE's .brep format records a shape as exact mathematical surfaces bounded by edges, the same way FreeCAD, CadQuery and pythonOCC hold it in memory. Real-time renderers cannot draw that. Web and AR viewers want triangles packed into a compact file, and GLB, the single-file binary form of glTF 2.0, is the format they load most readily. You need this step whenever a scripted or CAD-modeled part has to appear on a website, in a product configurator or in a game engine.

The conversion runs on our servers in FreeCAD 1.1. FreeCAD reads the shape with OpenCASCADE, and its MeshPart module meshes every face to a fixed chord deviation of 0.1 mm and an angular limit of 0.5 radians, roughly 29 degrees. Those values are absolute, so a watch screw and a car door get the same tolerance, and there is no setting to change them. The trimesh library then writes the triangles out as GLB in the same run. Identical sub-shapes stacked at the same position are written only once.

Only geometry arrives. All solids and shells end up in one mesh node as separate, disconnected bodies, with no material, no color and no part names. The node is even named after a temporary file. Curved faces become flat triangles within the tolerance above, so the exact surfaces cannot be recovered from the GLB later. Large, heavily curved shapes can produce a lot of triangles, because the tolerance does not loosen as the part grows.

The bigger catch is orientation and scale. glTF expects Y to point up and distances in meters, but the numbers are written exactly as the CAD data has them, with Z up and in millimeters. In a typical viewer the part therefore lies tipped onto its back and appears 1000 times its real size. Rotating it by minus 90 degrees around the X axis and scaling it by 0.001 puts it right.

How to convert BREP to GLB

  1. Make sure the file is in OpenCASCADE's format: CASCADE Topology V1 should appear near the start when you open it as text.
  2. Check that the shape contains faces or solids. A .brep with only wires has nothing to mesh, so send it to the BREP to DXF converter instead.
  3. Upload the file. Each file can be up to 50 MB as a guest, 100 MB when signed in, 200 MB on Plus and 1 GB on Pro. Guests and standard accounts can queue 10 files per batch, Plus 25 and Pro 50.
  4. Let the server mesh the shape and write the GLB. A single run may take up to 10 minutes before it is stopped.
  5. Download the GLB within about 4 hours of completion.
  6. In your scene, rotate the model minus 90 degrees around X, scale it by 0.001, then assign your own materials.

What you get from this converter

  • The shape is read by OpenCASCADE inside FreeCAD 1.1, the same kernel family that wrote the .brep
  • Fixed tessellation on every face: 0.1 mm chord deviation and 0.5 rad angular deviation
  • All bodies from the file in one GLB, kept as disconnected pieces of a single mesh
  • Coordinates written untouched, so measurements match the CAD numbers once you scale by 0.001
  • Duplicate sub-shapes at the same location written once instead of overlapping
  • Empty results caught and reported instead of being delivered as a blank GLB

Video Tutorial

Changing a BREP file to GLB has never been easier! Watch this detailed guide on how to do it completely free right in your web browser. 🔗 Visit MiConvert: https://miconvert.com/en/brep-to-glb?utm_so

BREP to GLB questions

How do I convert a mesh or an STL to BREP?

Not here. This page goes from BREP to a mesh, and no MiConvert converter writes .brep files. For the reverse direction, use a desktop tool. FreeCAD's Part workbench has Create shape from mesh, Fusion 360 has a Convert Mesh tool, and Rhino has MeshToNURB. All of them turn each triangle into a flat face, so you get a faceted solid, not smooth original surfaces.

Why does my model open lying down and enormous?

The GLB carries Z-up millimeter values in a format whose readers assume Y-up meters. Nothing is lost. Apply a rotation of minus 90 degrees about X and a uniform scale of 0.001. In three.js, for example, set rotation.x = -Math.PI / 2 and call scale.setScalar(0.001) on the loaded scene.

Can I get a smoother mesh or fewer triangles?

This converter has no quality control: every file uses the same 0.1 mm and 0.5 rad limits. To lighten a dense result, decimate it afterward, for instance with Blender's Decimate modifier or the simplify command in glTF-Transform. For a finer mesh, mesh the shape yourself in FreeCAD's Mesh Design workbench, where the tolerances are adjustable.

Will colors or part names come through?

No. A .brep file stores shape data only, and the GLB contains a single mesh with a placeholder name and no material. Add materials in your 3D editor or in code.

Why do I get No valid 3D geometry found?

The converter found nothing it could triangulate, so it refused to deliver a GLB without meshes. Usually the .brep holds only edges or wires, or its faces could not be meshed. Curve-only files convert to DXF instead. For faces that fail, run Part, Check geometry in FreeCAD, repair the shape and export again. The message mentions metadata and textures because it is shared across all 3D formats.

Is my .brep kept on your servers?

Only briefly. It is uploaded over HTTPS, converted on our servers and deleted once the job is done. The GLB can be downloaded for about 4 hours, then it is deleted automatically. Treat the download link like a password, because it works for anyone who has it until it expires. Our logs record file names, sizes and outcomes.