CSG to DAE: Convert OpenSCAD Exports to COLLADA
Upload the .csg file that OpenSCAD exports and get back a single triangulated COLLADA mesh. Plan to fix scale and orientation after import, because the numbers arrive as meters and the model opens tipped 90 degrees in Y-up viewers.
Download Started!
How would you rate your experience with MiConvert?
Why an OpenSCAD CSG file needs converting before a COLLADA tool can use it
A .csg file is what OpenSCAD writes when you choose File > Export > Export as CSG. It is your script flattened into a tree of primitives such as cube, sphere and cylinder, joined by union, difference and intersection, with variables, loops and modules already resolved. The file describes how to build the solid, not the triangles of its surface. Programs that expect a mesh have nothing to load from it, and that includes SketchUp and the many asset pipelines that still take COLLADA.
MiConvert reads the file on our servers with the OpenSCAD importer built into FreeCAD 1.1. OpenSCAD itself is not installed. FreeCAD parses the CSG tree and rebuilds each primitive and boolean as a solid. Only top-level solids are exported, and identical copies stacked at the same spot are written once. The solids are then triangulated with a fixed 0.1 mm chord tolerance and a 0.5 radian angle limit, and the trimesh library writes the triangles to DAE.
The shape survives, with one detail worth knowing. A cylinder with $fn between 3 and 16 is built as a prism with that many sides. A higher or unset $fn gives a truly round cylinder that is then meshed at our tolerance, so its facet count will not match OpenSCAD's own STL export. Spheres are also rebuilt as true spheres before meshing. Everything COLLADA could carry but this conversion does not fill in is missing: you get one mesh with no materials, no color() values, no part names and no node hierarchy.
Two things change on the way out. Our DAE files declare Y as the up axis and include no unit element, so COLLADA readers fall back to meters. OpenSCAD models are Z-up and usually drawn in millimeters, so a bracket 40 units long opens 40 meters long and lying on its back.
Use it when a parametric OpenSCAD part has to go into a tool that only imports COLLADA, such as a scene editor or a game asset importer.
How to convert an OpenSCAD CSG file to DAE
- In OpenSCAD, open your project and use File > Export > Export as CSG. The .scad source file itself is not accepted, so upload the exported .csg.
- Search the script for hull, minkowski, text, projection, import, surface, glide and subdiv. If any of them appear, export a mesh from OpenSCAD instead, because this converter will stop with a named error.
- Check that the parts you want are 3D. Flat square(), circle() or polygon() shapes that are never extruded produce no mesh, so wrap them in linear_extrude() or rotate_extrude() first.
- Upload the .csg. Guests can send up to 10 files of up to 50 MB each per request, and a free account raises the per-file limit to 100 MB.
- Download the .dae while the link is active, which is about 4 hours.
- After importing it into your COLLADA tool, scale the model by 0.001 and turn it 90 degrees about the X axis so its top faces up.
What this CSG to DAE converter does
- Parses OpenSCAD's exported tree of primitives and union, difference and intersection operations with FreeCAD 1.1, with no OpenSCAD install needed on your side
- Respects low segment counts: $fn values from 3 to 16 become prisms, while higher values give smooth cylinders that are meshed afterward
- Uses one triangulation setting for every model, 0.1 mm of chord deviation and roughly 29 degrees between neighboring facets, so small and large parts get the same absolute detail
- Writes the whole model as a single DAE mesh with no materials or texture references, ready for you to assign your own material
- Stops with a named message when the file uses hull(), minkowski(), text(), projection(), import(), surface(), glide() or subdiv(), which need OpenSCAD's own geometry engine
Video Tutorial
Learn how to change CSG to DAE online incredibly simply and quickly. This tool maintains 100% of your original file's quality. 🔗 Access MiConvert tool here: https://miconvert.com/en/csg-to-dae?utm_s
CSG to DAE questions
What kind of CSG file does this converter accept?
Only the .csg text file that OpenSCAD exports. Constructive solid geometry is the modeling method; the .csg file is OpenSCAD's record of the resolved tree. A .scad script, or a file from another program renamed to .csg, will not convert. Export a real CSG from OpenSCAD instead.
Why does my file stop with a message about hull(), minkowski(), text() or import()?
Those operations, together with projection(), surface(), glide() and subdiv(), are calculated by OpenSCAD's own geometry engine, and our servers do not run it. Render the model in OpenSCAD and export it as STL, OFF, AMF or 3MF. That mesh already contains the finished hull or Minkowski sum, and you can bring it into your target tool from there.
Why does the DAE open enormous and lying on its back?
No unit or axis conversion is done. Your OpenSCAD numbers are written as-is into a file that COLLADA readers treat as meters with Y pointing up, while the model's height runs along Z. Scale it by 0.001 to get millimeters back, then rotate it 90 degrees about the X axis so its top faces up.
Will colors, part names or separate objects carry over?
No. color() calls, module names and the boolean structure are not written. The DAE holds one mesh without materials, even if your model has several disconnected bodies. If you need separate objects, export each part to its own .csg and convert them one at a time.
What does "No valid 3D geometry found in this file" mean for a CSG?
The importer found no solid at the top level. Usually the model is 2D-only, or its 3D parts are nested inside something that is not exported. The message mentions textures and metadata because all our 3D converters share it, so ignore that part. Extrude the shapes in OpenSCAD and export again.
What about "Could not read this 3D file"?
The CSG text could not be parsed. The file may be cut short, contain a syntax error, or not be an OpenSCAD CSG export at all. Re-export it from OpenSCAD rather than editing it by hand, and upload the fresh copy.
Can I convert without losing quality, or choose the mesh resolution?
Curved surfaces in a DAE are always approximated by triangles, and this converter uses a fixed tolerance with no setting to change it. If you need a specific facet count, set $fn in OpenSCAD and export a mesh from OpenSCAD itself, where that value controls the result directly.
Where is my file processed, and how long is it kept?
The conversion runs on our servers, not in your browser, and the upload travels over HTTPS through Cloudflare. Your .csg is deleted as soon as the conversion finishes. The DAE can be downloaded for about 4 hours and is then deleted automatically. The download link is a long random token, but anyone you share it with can use it until it expires.