Mesh to CadQuery STEP Export
Paramesh AI uses CadQuery to build a parametric solid from your mesh data, then exports it as STEP. The pipeline extracts the 2D profile, extrudes it, cuts holes at detected positions, and applies chamfers. The result is a clean STEP file with analytic faces — not a tessellated mesh wrapped in STEP format.
What is CadQuery?
CadQuery is a Python CAD scripting library built on OCCT (the OpenCascade kernel). It creates proper B-rep solids programmatically — the same kernel that powers FreeCAD. STEP files exported from CadQuery are fully compatible with SolidWorks, Fusion 360, and Onshape.
How the export works
- Profile extraction — slices the mesh at multiple cross-sections, takes the largest polygon
- Profile simplification — reduces the polygon to corner vertices only (removes collinear points)
- Extrusion — creates a CadQuery Workplane, draws the profile, extrudes to depth
- Hole cutting — for each detected hole, creates a cylinder at the exact 3D position and subtracts it
- Chamfers — applies edge chamfers to all edges (progressive size fallback for stability)
- STEP export —
cq.exporters.export(solid, "output.step")