Mesh2Cad Automates Re-Modelling

It’s happened to all of us, we find an STL that would just about solve our problems, but the mesh isn’t quite right. Sometimes mesh-editing is good enough, other times you need to rebuild the mesh in a proper CAD environment to get what you need. In that latter case, [Emir Mrkaljevic]’s Mesh2Cad program could save you a whole lot of work, because it does exactly what it says on the tin: turns a mesh to a CAD file.

Even better, [Emir] doesn’t pick the CAD format for you. Sure, it does STEP, but you can also go straight to FreeCAD, CadQuerry or OpenSCAD with these handy scripts. Well, technically the FreeCAD version generates a macro to make the object rather than a .FCSTD, but that’s still pretty handy. Scripts is the right word for mesh2cad, because the whole thing is python and just a pip install mesh2cad away from living on your machine. Of course you don’t need to use pip since the whole thing is on GitHub and available for your eyeballs to audit. Speaking of audit, the scripts apparently check their own work and only give you CAD if they can approximate the mesh within tolerance.

Now there are limits here, if you think it sounds too good to be true. You’re limited to things that can be made of the sort of primitive manipulation OpenSCAD usually deals in — no organic shapes, free-flowing curves, or the like. If it’s a box or a bracket with holes, fillets and chamfers, though, this tool might save you a couple minutes recreating it.

If you prefer to do it yourself or have one of those annoyingly-organic meshes this tool won’t touch, we have a guide for what to do when an STL needs some tweaking.

Learn To Edit STL Files In Just A Few Minutes

Sometimes an STL file needs a bit of editing, but if one doesn’t already know how to use a mesh editor it’s unlikely that one has the time to sit down and learn it in the middle of a project. Happily, that’s where [Prusa]’s five-minute guide to editing STL files directly will come in handy.

The editor of choice is Blender, a fantastic piece of open source software that can be intimidating because it’s got one of those interfaces in which clicking around with an explorer’s heart just isn’t going to get you very far. Most guides start at learning Blender from scratch, assuming one will be using it to create new 3D models. This guide instead focuses on importing and modifying existing models rather than trying to teach the entire interface. For all the apparent complexity, Blender’s underlying functions are actually quite straightforward and simple to use once one knows the right approach.

Having to make changes to an STL file is something most folks have grimaced inwardly about at least once when 3D printing. Certainly, STL files can be imported into CAD programs like FreeCAD, but editing them that way is always a bit of a square peg in a round hole.

A guide like this is a valuable reference for the next time an STL file needs some changes, but the time has not yet come to sit down with a gallon of coffee and learn Blender from scratch.

Using STEP And STL Files In FreeCAD

If you’ve tried FreeCAD, you know that it has a daunting number of workbenches and options. [MangoJelly] has a large number of video tutorials on FreeCAD, and the latest one, below, covers working with STEP and STL with the tool.

If you’ve ever wondered why designers like to work with STEP files and not STL, this video answers that question immediately. A part brought in from a STEP file is closer to the original CAD object. It doesn’t have all the operations that make the part up, but it does have proper faces that you can work with like a normal part. The same part imported from STL, however, is one single mesh.

Continue reading “Using STEP And STL Files In FreeCAD” →