BREP to glTF Converter
Upload an OpenCASCADE .brep and get its shape as a triangle mesh. Right now the .gltf download arrives without the .bin files that hold the geometry, so it will not open; convert the same file to GLB, which packs everything into one file.
Download Started!
How would you rate your experience with MiConvert?
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 →
What happens when a BREP file becomes glTF
A .brep file is the native text format of the OpenCASCADE geometry kernel. FreeCAD's Part workbench and OpenCASCADE-based scripting tools such as CadQuery write it when they save a shape as is: exact planes, cylinders and spline surfaces, plus the topology that ties faces, edges and vertices together. Web viewers, game engines and libraries like three.js or Babylon.js have no B-rep kernel, so they cannot read it. They need triangles, and triangles are what glTF stores.
On our servers, FreeCAD 1.1 loads the shape and tessellates every face with a fixed chord tolerance of 0.1 mm and an angular limit of 0.5 radians, about 29 degrees. A watch screw and a machine frame get the same settings, and there is no option to change them. Sub-shapes stacked twice at the same position are written only once, so the mesh has no doubled faces. The trimesh library then writes the glTF.
That last step is where the .gltf download currently breaks. A .gltf file keeps its vertex and triangle data in separate .bin buffer files, and our packaging step leaves those buffers out. You receive a .gltf that points to data that is not there, and no viewer can display it. Until this is fixed, convert the same BREP to GLB, the single-file binary form of glTF, which holds the same mesh and loads normally.
The shape survives as triangles within the tolerance above. Materials, colors, names and structure do not: everything goes into one mesh node named after a temporary file, and a compound of several solids becomes one mesh with disconnected pieces. Coordinates are also written unchanged. BREP numbers are millimetres with Z pointing up, while glTF readers assume metres with Y up, so the part appears 1000 times too large and lying on its back until you scale it by 0.001 and rotate it -90 degrees around the X axis.
This conversion suits people placing OpenCASCADE parts in a web page, a product viewer or a game scene. Many searches around BREP ask for the opposite direction, rebuilding a B-rep from an STL mesh; that is answered below.
How to get a BREP part into glTF viewers
- Confirm the file is an OpenCASCADE BRep: open it in a text editor and look for DBRep_DrawableShape or CASCADE Topology V1 near the top. Gzip-compressed .brep files are unpacked before reading.
- Because the .gltf output is missing its buffers today, choose MiConvert's BREP to GLB converter for a file you can open.
- Upload the .brep on the GLB page. Per-file limits are 50 MB as a guest, 100 MB with a free account, 200 MB on Plus and 1 GB on Pro.
- Save the GLB to your project soon after it finishes, since its link expires roughly 4 hours later.
- Scale the model by 0.001 and rotate it -90 degrees around X in your viewer, scene code or Blender so it stands upright at its real size.
- If your pipeline insists on a separate .gltf plus .bin, import the GLB into Blender and export it with the glTF Separate option.
What the BREP converter does
- Reads OpenCASCADE text BRep through FreeCAD 1.1, built on the same kernel that writes the format.
- Recognizes uploads that are not BREP at all, such as ZIP, PDF, RAR, 7z, PNG, JPEG or native SolidWorks and Inventor files, and stops instead of guessing.
- Meshes at a fixed 0.1 mm chord and 0.5 rad angle, so tightly curved faces receive more triangles than gentle ones.
- Writes stacked duplicate sub-shapes once, keeping overlapping faces out of the mesh.
- Checks the GLB for meshes before handing it over, so a shape that produced no triangles is reported as a failure rather than delivered as an empty scene.
- Converts a set of .brep parts in one request, up to 10 files without a paid plan, 25 on Plus and 50 on Pro, each meshed with the same tolerance.
Video Tutorial
Are you struggling with how to convert your BREP file to GLTF format? Don't worry, in this video I will reveal a super convenient tool to help you change your file extension completely for free withou
BREP to glTF questions
Why does my converted .gltf file not open?
It is incomplete. A .gltf references external .bin buffers that hold the vertices and triangles, and our download currently ships without them. This is a known fault on our side, not a problem with your BREP. Convert the file to GLB instead; it carries the same mesh in one file and opens in three.js, Babylon.js, model-viewer and Blender.
How do I convert a mesh or STL to BREP in Fusion 360, Rhino or Grasshopper?
That is the reverse of this page, and MiConvert does not create BREP files. Do it in the modeling program: Fusion 360's mesh tools include a Convert Mesh command that turns a mesh body into a solid, Rhino's MeshToNURB command turns a mesh into a polysurface and Grasshopper scripts can call the same Rhino conversion, and FreeCAD's Part workbench can create a shape from a mesh. In most of these the triangles become flat faces, so the result stays faceted unless the tool offers a method that fits planes and cylinders, such as Fusion 360's prismatic option.
Is the mesh exact, or does it lose quality?
Any mesh approximates curved faces and curved edges. Here each triangle stays within 0.1 mm of the true surface, with an angular limit of about 29 degrees, and there is no setting for a finer mesh. Flat faces with straight edges come through exactly; holes and rounded edges on them are approximated by segments. Keep the BREP for any work that needs the original surfaces.
Why is my model huge and lying on its back?
No unit or axis conversion is applied. The millimetre numbers from the BREP are read as metres by glTF and GLB viewers, and the Z-up data is shown in a Y-up format. Scale by 0.001 and rotate -90 degrees around the X axis to fix both.
Can I upload a Rhino, Parasolid or SolidWorks brep?
Only OpenCASCADE's .brep format is read. Rhino models can be converted from their .3dm file directly, Parasolid files are not supported, and native SolidWorks or Inventor files are recognized and refused. If your CAD program exports STEP, convert that STEP to GLB instead; a .gltf from STEP has the same missing-buffer problem.
What does "Could not read this 3D file" mean?
FreeCAD could not parse the upload as an OpenCASCADE shape. Common reasons are a "brep" written by a different kernel, a save or download that stopped partway, or another file type given a .brep extension. The wording is shared with other 3D formats, which is why it mentions textures. Write the shape out again from FreeCAD or your script and upload the fresh file.
Are colors, materials or part names carried over?
No. The output is a single untextured mesh without materials or names. Assign appearance in Blender or in your scene code after loading the GLB.
What happens to my file after conversion?
Your BREP is uploaded to our servers and converted there. The upload is removed once the job ends, and the resulting mesh stays available behind its download link for roughly 4 hours before it is deleted automatically. That link is a random token not tied to any account, so whoever has it can download the file until it expires. Logs record file names, sizes and formats.