Convert OpenCASCADE BREP to a PLY Mesh
This converter tessellates an OpenCASCADE .brep shape into a binary PLY that mesh and point-cloud tools such as MeshLab and CloudCompare open. The PLY stores vertex positions and triangles only, with no color. Curved faces are approximated to within a fixed 0.1 mm.
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 →
Why convert BREP to PLY
PLY, the Stanford polygon format, is the everyday exchange file of 3D scanning and mesh research: scanners export it, and inspection and processing tools read it. Those tools expect points and triangles. An OpenCASCADE .brep describes the part as exact mathematical surfaces bounded by edges, which scan software cannot interpret.
We load the file on our servers with FreeCAD 1.1. Its MeshPart mesher cuts every face into triangles, keeping each chord within 0.1 mm of the true surface and each angular step under 0.5 radians. The same script then passes that mesh to the trimesh library, which writes the PLY.
The result is a binary little-endian PLY with each vertex's x, y and z values and the triangle list. Each face also carries an extra unsigned short property named 'stl'. It is declared in the header, so readers that have no use for it can skip it. No color, material or part name is written, and once the exact surfaces are triangles, they cannot be recovered. If the BREP contains several solids, they are not fused together.
A typical reason for this pair is inspection: loading the nominal CAD part next to a scan of the manufactured piece in CloudCompare and measuring the distance between them. Keep the tessellation in mind when you read that report, because up to 0.1 mm of deviation can come from the triangles themselves rather than the part. People feeding CAD shapes into Open3D, trimesh or similar mesh pipelines are another likely audience.
How to convert BREP to PLY
- Confirm that the input is an OpenCASCADE BREP text file, with a 'CASCADE Topology V1' line near the top (often right after a 'DBRep_DrawableShape' line). A gzip-compressed .brep is unpacked automatically before it is read.
- Check the units. A BREP stores bare numbers, FreeCAD treats them as millimeters, and they go into the PLY unchanged. If your scan is in meters, one of the two files will need scaling before you compare them.
- Make sure the shape has faces. A wireframe-only shape cannot become triangles.
- Upload the .brep here. PLY is already selected as the output.
- Download the .ply within 4 hours. Then load it into MeshLab, CloudCompare or your own script and align it with your scan data.
What you get in the PLY
- A binary little-endian PLY, smaller than an ASCII PLY of the same mesh and read by common scan and mesh software.
- Triangles made from the exact OpenCASCADE geometry, read by FreeCAD 1.1 before any meshing happens.
- An absolute 0.1 mm chord tolerance, so small and large parts get the same surface accuracy. There is no setting to change it.
- Coordinates passed through as millimeter values with no axis swap, so the mesh lines up with other exports from the same CAD model.
- Exact duplicate sub-shapes stacked at the same spot are written once, so identical copies do not add doubled triangles to distance calculations.
- A check that rejects a PLY with no vertices before delivery, rather than handing over an empty file.
Video Tutorial
An A-Z video guide on how to use MiConvert to change BREP format to PLY. This is the safest method to convert data without needing to download any applications to your device. 🔗 Format conversion to
BREP to PLY questions
Can the PLY include vertex colors?
No. No color is read from the BREP or written to the PLY, so every vertex is plain. If you need color, for example to tint a deviation map, add it afterward in MeshLab or CloudCompare.
Is a 0.1 mm mesh accurate enough to compare against a scan?
That depends on your tolerances. On curved faces, and along curved edges such as the rim of a hole, the triangles can sit up to 0.1 mm from the true geometry. Triangles on flat faces lie in the true plane. If your tolerance band is tight, mesh the part yourself in FreeCAD's Mesh Design workbench with a smaller surface deviation and export the PLY from there. The tolerance on this page cannot be changed.
How do I turn a scan or STL back into a BREP?
That is the opposite direction, and MiConvert has no converter that outputs BREP. For scans, use reverse-engineering software that fits surfaces to the data. For simple, clean meshes, a CAD program can wrap the triangles into a solid, for example Rhino's MeshToNURB or Fusion's Convert Mesh, but every triangle becomes its own face.
Will the parts of a compound stay separate?
They stay as separate pieces, but not as separate objects. PLY has no concept of named parts, so all solids share one mesh and are not fused together. Tools that split a mesh into connected components can pull them apart again.
Why do I get 'No valid 3D geometry found in this file'?
This generic message, which mentions textures, appears when the BREP holds no faces that can be meshed, as with a wireframe or a sketch, or when its surfaces could not be triangulated. Rebuild faces or a solid and export again. A BREP made only of curves can still be converted to DXF.
Why do I get 'Could not read this 3D file'?
Usually the file is not an OpenCASCADE BREP at all. Parasolid .x_t, Rhino and other brep exports are not accepted, and a truncated or damaged file fails the same way. If your CAD program can export STEP, use that with the STEP to PLY converter. Otherwise, re-export the .brep from FreeCAD.
Is my BREP kept after conversion?
Conversion happens on our servers, which your file reaches over HTTPS through Cloudflare. We delete your uploaded .brep when the job ends and remove the PLY about 4 hours after it is ready. Until then, the download link works more than once for anyone who has it, although it is too long and random to guess. We log file names, sizes, formats and results, and signed-in users also get a history entry for each conversion.
Are there size or batch limits?
Yes. Guests can send files up to 50 MB each, in batches of up to 10, at no charge. A registered account raises the per-file cap to 100 MB. Plus allows 200 MB and 25 files per batch, and Pro allows 1 GB and 50. Guests and free accounts can start up to 10 conversion jobs per hour from one IP address, where one batch counts as one job.