DXF Cleaner: Clean your dxf file to simplify Complex Meshing
- Adisorn O.
- 4 days ago
- 1 min read
DXF Cleaner is a geometry-preparation and meshing workflow developed for real-world structural drawings, where slab boundaries, voids, drops, bands, recesses, toppings, columns, and walls may not connect perfectly. Before meshing, the tool can detect and repair small gaps, narrow strips, disconnected endpoints, and near-coincident geometry within a user-defined tolerance. Structural reference objects such as columns and walls can remain fixed while surrounding slab or region boundaries are adjusted to remove insignificant drafting defects.


The cleanup is performed iteratively. Movable boundaries are conceptually exploded into smaller segments, checked against nearby geometry, extended or snapped where appropriate, and then rejoined into valid closed regions. For slab boundaries, optional subdivision into shorter segments allows very local corrections without disturbing long portions of the original outline. Every accepted repair can be displayed graphically and recorded in a detailed log so the user can review exactly what was changed.


After geometry cleanup, the resulting model can be passed to a meshing engine such as Gmsh. Gmsh then performs the actual finite-element mesh generation, while an additional small user-defined geometric merge tolerance can be used to eliminate residual near-coincident points that are insignificant for structural analysis.
The objective is not to reproduce imperfect CAD geometry literally. It is to create a topologically consistent structural analysis model while preserving the engineering intent of the drawing. This separation between geometry cleanup and meshing should make the overall process significantly more robust for complicated and imperfect project DXF files.
