DXF to OFF Converter: Outlines to Triangle Mesh | MiConvert

DXF to OFF Converter: Closed CAD Outlines to a Plain Triangle Mesh

Upload a DXF and download an ASCII OFF mesh: closed outlines are extruded one drawing unit deep, 3D face entities are carried over, and every surface is split into triangles. Close any open contours before uploading, because unclosed linework produces no geometry.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
DXF → OFF

DXF drawings in Google Drive?

Drive cannot preview DXF files. Open one from Drive with MiConvert to see the drawing as pages, or convert it and save the result next to the original. MiConvert for Google Drive →

From DXF linework to the Object File Format

OFF, the Object File Format associated with the Geomview viewer, is about as bare as a mesh format gets: a header line, a line of counts, a list of vertex coordinates and a list of faces. Geometry-processing libraries, research code and shape collections such as the Princeton Shape Benchmark and ModelNet use it because it can be parsed in a few lines. A DXF stores CAD entities, mostly in 2D, so tools that expect OFF cannot use a drawing directly.

The conversion runs on our servers with ezdxf and trimesh. Surface entities (3DFACE, MESH, POLYFACE and POLYMESH) are read as faces. Flat contours are traced, and gaps at their ends are closed when they are tiny compared with the drawing's diagonal. Each enclosed region then becomes a prism 1 drawing unit tall, with inner loops removed as holes.

trimesh writes ASCII OFF with shared vertices merged and triangles only, so a rectangular face arrives as two triangles. There are no colors, normals, materials, layer names or block names, and everything is one mesh. Curves are broken into segments at a 0.05-unit tolerance, so a large circle gets more facets than a small one. OFF has no unit field, and the DXF's unit setting is not read, so the coordinates are exactly the drawing's numbers.

Typical users are students and researchers who want test shapes from CAD, such as cut profiles for remeshing or mesh-boolean experiments, and developers whose code reads OFF but not DXF. Many searches that mention dxf and off are really looking for offline software. This is an online service, so the FAQ below covers that case too.

Preparing a DXF for a clean OFF mesh

  1. Join any open contours into closed loops in your CAD program, for example with JOIN or PEDIT in AutoCAD. Shapes left open are not filled.
  2. Delete text, dimensions and borders, or keep them on layers whose names say what they are (dim, text, title, border, hatch, center). Dashed or other non-continuous linetypes are also skipped when the remaining shapes close.
  3. Replace AutoCAD 3DSOLID, REGION, BODY or SURFACE entities with 3DFACE or mesh entities, or export STL or STEP from your CAD program instead, because ACIS solids are refused.
  4. Upload the DXF. Files up to 50 MB convert without signing up; a free account allows 100 MB per file.
  5. Download the .off and open it in MeshLab or load it in your own code. The first line reads OFF, and the next line gives the vertex count, the face count and an edge count of zero.

What goes into the OFF file

  • Triangle faces only, written as plain ASCII you can inspect in any text editor
  • Duplicate vertices merged, so neighboring triangles share vertex indices
  • Holes inside closed regions carried through the full 1-unit thickness of the slab
  • Faces from 3DFACE, MESH, POLYFACE and POLYMESH entities, including those nested in blocks up to eight levels deep
  • Coordinates exactly as drawn, with no rescaling or unit conversion
  • Drawings in a tilted plane laid flat first, with the paper-space layouts read when model space is empty

Video Tutorial

Detailed guide on how to convert DXF files to OFF quickly, for free, and without losing original quality. Perfect if you need to process file formats, reduce size, or upload files to systems that only

DXF to OFF questions

Can I convert DXF offline with this tool?

No. Every conversion here runs on MiConvert's servers, so you need a connection to upload the DXF and download the OFF. If a drawing must not leave your computer, use desktop software: FreeCAD opens DXF files and exports meshes, and MeshLab reads and writes OFF.

Does the OFF file keep colors, normals or layers?

No. The output is a plain OFF file, not the COFF or NOFF variants, so it holds vertex positions and triangles only. DXF layer colors, layer names and block structure are not carried over, and the whole drawing becomes one mesh.

What units are the coordinates in?

Whatever units the drawing used, unchanged. The DXF's unit header is never read, and OFF has no way to state units. A 60 by 30 outline drawn in inches becomes a 60 by 30 by 1 mesh, so record the unit yourself.

Why did my DXF fail with 'No valid 3D geometry found'?

This is a generic message, and its mention of textures does not apply to drawings. For DXF it points to contours with gaps, drawings with only open lines, ACIS solids, or closed shapes covering under 2 percent of the drawing, which are refused as fragments. Join the outlines and try again, or export STL or STEP from your CAD program for solid models.

Are text, dimensions and hatching turned into geometry?

Usually not. Layers named for dimensions, text, titles, borders, hatching, centerlines, hidden lines or construction are skipped, along with non-continuous linetypes, but only as a preference. If nothing else closes, everything is used. Hatch and solid fills serve only as a fallback when no outlines close.

Will circles and arcs stay smooth?

They become polygons. Curves are flattened with a 0.05 drawing-unit tolerance before triangulation, and OFF can only store flat faces anyway. If you need more facets on small features, scale the drawing up in CAD before export and scale the mesh back afterward.

Should I use STL instead of OFF?

Use STL for 3D printing or CAD tools, and OFF for research code, datasets and libraries that read it natively. The DXF to STL converter reads the drawing with the same rules, so the geometry matches. Only the file format differs.

What happens to my file after conversion?

Your DXF is converted on our servers after an HTTPS upload and deleted as soon as the job ends. The OFF stays downloadable for about 4 hours, then it is deleted automatically. Anyone holding the random download link can use it until it expires. File names and outcomes are logged, and signed-in users get a history entry (source, target and file name) that is kept until the account is deleted.