DXF to PLY Converter: 2D Outlines to 3D Mesh | MiConvert

DXF to PLY: Closed Outlines Extruded into a 3D Mesh

Upload a DXF and get a binary PLY mesh. Every closed outline is extruded one drawing unit thick, and inner loops are cut through as holes. The DXF's unit setting is ignored, so the PLY holds your drawing's raw numbers, and the file has no color.

📁

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 → PLY

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 →

What happens when a flat DXF becomes a PLY mesh

DXF is the exchange format that AutoCAD and most CAD/CAM programs use for drawings. A typical file is flat linework: lines, arcs and polylines that describe a profile but enclose no surface. PLY, the Stanford polygon format, stores vertices and faces, and it is what MeshLab, CloudCompare and many scan-processing tools read. Those programs have nothing to display from a set of 2D curves, so the outlines must become faces first.

Our converter does this on our servers with the ezdxf library. Faces that already exist in the drawing as 3DFACE, MESH, POLYFACE or POLYMESH entities, including ones inside blocks, are read as 3D faces. For flat linework, it collects LINE, ARC, LWPOLYLINE, POLYLINE, CIRCLE, ELLIPSE and SPLINE entities and expands block references up to eight levels deep. Curves are approximated by straight segments at a 0.05 drawing-unit tolerance, and tiny gaps between endpoints are closed. Each closed region is then filled and extruded exactly 1.0 drawing unit, and trimesh writes the result as a binary PLY.

The outline shape survives, and loops inside other loops become through-holes, so a flange drawing keeps its bolt holes. Several things do not survive. The DXF's unit header is never read, so a 60 by 30 inch plate comes out as 60 by 30 by 1 in whatever unit your viewer assumes. The thickness cannot be chosen. Arcs and circles become faceted. Layers, colors and lineweights are not written, so the PLY holds only vertex positions and triangle faces.

Text and dimension entities are not among the shapes the importer builds. Layers whose names point to dimensions, text, title blocks, borders, hatching, center or hidden lines are left out, and so are dashed linetypes, as long as the rest of the drawing still closes on its own. If nothing else forms a closed shape, everything is used. A drawing placed in a tilted plane is laid flat, and if modelspace is empty, the paperspace layouts are tried.

This page suits anyone who needs a design outline as a mesh inside a PLY-based tool, for example to place a cut profile next to a scan of the finished part. If your goal is 3D printing, the DXF to STL page uses the same importer and produces the format slicers expect.

How to convert DXF to PLY

  1. Close every outline you want as a solid shape. In AutoCAD, PEDIT with Join, or the JOIN command, merges touching segments into one closed polyline. Only gaps up to about a thousandth of the drawing's diagonal are bridged for you.
  2. Look for ACIS 3D solids (3DSOLID, REGION, BODY or SURFACE entities). The importer refuses them, so for a solid model, export STEP from your CAD program and use our STEP to PLY converter instead.
  3. Save as DXF, ASCII or binary, and upload it. Guests can send files up to 50 MB, and a free account raises that to 100 MB.
  4. The output on this page is always PLY. The importer and the PLY writer run on our servers, and the file is offered for download when the job ends.
  5. Open the PLY and check it. The plate is one unit thick, so if you need, say, a 3 mm part from a millimeter drawing, scale it along Z in MeshLab or Blender.

What the DXF importer handles

  • Even-odd region filling: a circle inside a rectangle becomes a hole, and an island inside that hole becomes solid again.
  • Block references (INSERT and MINSERT) are expanded up to eight levels deep, so repeated parts drawn as blocks are included.
  • Endpoint gaps are closed automatically at three increasing tolerances, up to a thousandth of the drawing's diagonal.
  • Annotation is filtered by layer name and linetype, but only while the remaining geometry still forms closed shapes.
  • Damaged DXF files get a second try in ezdxf's recover mode, and paperspace layouts are used when modelspace is empty.
  • A guard refuses the job when the closed shapes cover under 2 percent of the drawing, rather than handing you a stray fragment.

Video Tutorial

Are you struggling with how to convert your DXF file to PLY format? Don't worry, in this video I will reveal a super convenient tool to help you change your file extension completely for free without

DXF to PLY questions

Can a normal 2D DXF be converted to PLY?

Yes, as long as it contains closed outlines. Each closed shape is extruded one drawing unit thick, so a flat part drawing becomes a thin plate. Open lines on their own, such as a lone centerline or an unfinished sketch, cannot be filled and produce no geometry.

Why do I see "No valid 3D geometry found in this file"?

For DXF files, this message covers several causes: an outline that does not quite close, a drawing made only of open lines, or ACIS solids, which the importer refuses. The text mentions textures because it is shared with other 3D converters, and the specific reason is not shown. Join the outline with PEDIT or JOIN and upload again. For solid models, export STEP or STL from your CAD program instead.

What does "Could not read this 3D file" mean for a DXF?

The file could not be parsed, even in recover mode. That usually means it is truncated, damaged, or not really a DXF. Open it in your CAD program, save it again as DXF, and retry. If you downloaded it from somewhere, download it again.

Can I choose the thickness or keep my drawing units?

No. The extrusion is always 1.0 drawing unit, and the $INSUNITS header is ignored. PLY has no unit field anyway, so the receiving program decides what one unit means. For a different thickness, scale along Z after conversion.

Will the PLY include colors or layers from my DXF?

No. The file contains vertex positions and faces only. PLY can store per-vertex color, which is why scanners use it, but this converter does not write any, and DXF layer and color settings are not carried over.

How do I convert DXF to STL instead?

Use our DXF to STL page. It runs the same importer with the same one-unit extrusion and writes a binary STL that slicers open directly. Choose PLY only when the program you are feeding expects it.

Can I turn a DXF into a STEP file or SolidWorks part here?

No. From DXF, this converter produces triangle meshes only, and a mesh cannot be edited as features. For an editable part, import the DXF as a sketch in your CAD program and extrude it there.

What happens to my file after converting?

Your upload is deleted as soon as the conversion finishes. The PLY can be downloaded for about 4 hours, then it is deleted automatically. Transfers use HTTPS. The download link is a random token that anyone holding it can use until it expires, so share it with care. File names, sizes and outcomes are logged for operations.