# Difference between revisions of "CAD"

One concern with CAD is a fundamental aspect of their architecture: How are curves, arcs and circles handled? All- too-many programs take the expedient route of representing them as as polygons or polylines. Academic paper discussing this G codes for the specification of Pythagorean-hodograph tool paths.

Please note that it is possible to use pretty much any vector drawing program for design, esp. if one limits oneself to 2D (one interesting example of this is the use of a JavaScript to generate G-Code from vectors w/in the page layout program InDesign (see IterativePathCuts (unfortunately limited to straight lines) at Silicon Publishing: Resources, forum discussion)). The 2D drawing programs listed below were chosen for their having especial support in the form of features or plug-ins to support CAM.

A note on curve approximation: The trivial case with four cubic beziers (one on each quadrant) has very low maximum error, IIRC on the order of 0.1% of the circle radius.[1]

Origin point This is different from most drawing and CAD programs: https://bugs.launchpad.net/inkscape/+bug/170049 as discussed here: http://www.shapeoko.com/forum/viewtopic.php?f=6&t=5102&p=37166#p37166

A note on vector drawing: Vector drawing is like to drafting with rules, triangles, compasses and a French curve, while pixel editing is more akin to colouring in spaces on a grid. Vector drawing uses lines (a straight path between two "nodes" which are x,y coordinates, one is the beginning, the other the ending), regular geometric forms (defined by nodes which denote each point at which lines meet), arcs and circles (defined by the central point of rotation and the radius therefrom) and Bézier curves (a mathematical description of an arbitrary curve which has four "nodes", one on-the-path, two off-the-path and one on-the-path) to allow it to express pretty much any shape or form.

A game to learn about forming such curves: http://bezier.method.ac/#

A note on units: Most CAD programs store drawings in generic units, rather than a specific measure. It is important to know what unit was used when a drawing was created so as to be able to import it at the right size. Forum discussion.

It is also of course, straight-forward to work directly in G-Code, accomplishing Design and CAM in a single step using programs which provide integrated text editing such as NC Plot and NC Corrector (the latter is listed on the Previewing G-Code page. A tutorial is listed on the CAM page. Unfortunately, Grbl’s implementation of G-code leaves out variables and looping, so is not suited for this --- there is at least one pre-processor, G-sharp which affords support for these features, instantiating them as simpler G-code, bCNC supports this.

Note: A number of programs listed on the CAM page include design features for such specialized things as PCBs, Thread and Fret cutting and Gears.

The Failed Promise of Parametric CAD, a series of articles by Evan Yares[3]:

Tracing is a useful option for some projects. Most vector drawing programs have an option for this (one option is to place the image on the desktop or in a window beneath the CAD tool, then make that window transparent), or one can use a specialized tool. One such: http://www.kvec.de/english/index.htm Discussion: https://www.reddit.com/r/CNC/comments/47fqeh/best_raster_img_to_scalable_vector_programs/

Opensource tracing: http://potrace.sourceforge.net/ --- web interface: http://www.vectorization.org/

Webservice for tracing: https://convertio.co/jpg-svg/

Parametric modeling tutorial http://www.resilientmodeling.com/ [4]

Page with table listing many opensource CAD apps: https://sites.google.com/site/lagadoacademy/miscellaneous-projects/free-cad-software---overview --- includes columns for OS compatibility, incl. whether or no an app will run in Linux using WINE.

## 2D

Carbide Create --- runs on Mac OS X and Windows, imports DXFs and SVGs, CAD/CAM functionality, and supports V-carving.

2D drawing (Opensource) Inkscape SVG drawing program which can either export to DXF or directly to G-code using plug-ins. Supports pressure-sensitive graphics tablets.
2D CAD (Opensource) LibreCAD Fork of Qcad. Free and OpenSource CAD (DXF) application, cross platform.

Includes menu option to export to MakerCAM SVG.

2D CAD (Opensource) Simple2D CAD/CAM Windows app to cut simple shapes (pockets, mostly) and simplified gears, includes a geometry mode that allows geometry defined by lines and arcs. It also generates geometry from any OpenType font.
2D drawing (Opensource) Cenon (Mac OS X, NeXT/OPENstep, Linux) OpenStep CAD/CAM program which has transitioned to opensource.
2D drawing (Opensource) Xfig G-code enabled Xfig.
2D CAD (Opensource) Dedalo 2d CAD drawing software written in python3.
2D CAD (Opensource) Zcad Simple CAD program with dxf2000 file format support.
2D CAD (Freeware) OpenS-CAD, a simple 2D CAD application Windows .exe (87.5KB) and source (225KB).
2D CAD (Freeware) DraftSight Free CAD software for DWG (and DXF) files by Dassault Systèmes (Windows, Mac OS X, Linux (Fedora and Ubuntu)). http://www.solidworks.com/sw/products/draftsight-getting-started-guide.htm
2D CAD (Freeware) nanoCAD Free tool for creating, editing, validating, sharing, and managing CAD models.
2D CAD (Freeware) Siemens Free 2D Free CAD software by Siemens (Windows). textbook available as a PDF.

## Extrusion

http://www.extrudy.net/ --- create simple, printable 3D objects such as coins, pendants, earrings or medals. Youtube Reddit

## Fonts

In many instances a single-line font is a desirable option for CNC. The Hershey Fonts in Inkscape are one notable option.

Lengthy article and list of options at: http://imajeenyus.com/computer/20150110_single_line_fonts/index.shtml

## 3D

Merging the boundaries between 2D and 3D, CAD and CAM, there's http://www.flatfab.com/ Fabrication Design Software that helps you design and fabricate 3D objects. Ideate and draw in 2D, fabricate in 3D.

3D modeling (Opensource) K-3D K-3D is free-as-in-freedom 3D modeling and animation software. It combines flexible plugins with a visualization pipeline architecture, making K-3D a versatile and powerful tool for artists. Available for Windows, Mac OS X and Linux.
3D modeling (Opensource) BRL-CAD BRL-CAD is a cross-platform open source solid modeling system that includes interactive geometry editing, high-performance ray-tracing for rendering and geometric analysis, image and signal-processing tools, a system performance analysis benchmark suite, libraries for robust geometric representation, with more than 20 years of active development. Discussion of shortcomings.
3D modeling (Opensource) Art of Illusion Free, open source 3D modeling and rendering studio. Features include subdivision surface based modeling tools, skeleton based animation, and a graphical language for designing procedural textures and materials. Default design software for the RepRap project.
3D modeling (Opensource) MeshLab Open source, portable, and extensible system for the processing and editing of unstructured 3D triangular meshes.

Converts Obj to stl?

3D modeling (Opensource) HeeksCAD Together with HeeksCAM comprises HeeksCNC. Youtube: HeeksCAD Unofficial Tutorial Part 1:Introduction General overview of GUI for HeeksCAD
3D modeling (Opensource) FreeCAD FreeCAD is a general purpose feature-based, parametric 3D modeler for CAD, MCAD, CAx, CAE and PLM, aimed directly at mechanical engineering and product design but also fits a wider range of uses in engineering, such as architecture or other engineering specialties. It is 100% Open Source and extremely modular, allowing for very advanced extension and customization. See also the Python-query-scripting language CadQUERY and Cnc25D CAD Library.

A variety of macros are available, i.e., http://www.freecadweb.org/wiki/index.php?title=Macro_FCGear [7]

Print creation and assembly handling FreeCAD leave a lot to be desired.[8]

3D parametric modeling (Opensource) OpenSCAD Software for creating solid 3D CAD objects, available for Linux/UNIX, MS Windows and Mac OS X. A 3D-compiler that reads in a script file that describes the object and renders the 3D model. Similar on-line tools include CoffeeScad, OpenJsCad and fabfabbers running openscad converted to JavaScript. See also SolidPy, a Python script for manipulating objects. Cf., RapCAD, a system optimized for RepRap 3D printers, Developer’s blog. There is also an app for Android, ScorchCAD.

See also the graphical version Ulticreator, an interactive front-end for CoffeeSCAD.

3D parametric modeling (Opensource) ImplicitCAD Similar to OpenSCAD (above), but written in Haskell and using an internal geometric representation, as opposed to the polygon mesh used by the former
3D parametric modeling (Opensource) NaroCAD 3D parametric modeling CAD application for Windows, based on OpenCascade.
3D modeling (Opensource) Blender Free, OpenSource and crossplatform 3D program. Allows modelisation, shading, rendering, animation, interactive 3D, compositing. Not a CAD software though it can be used for any kind of modeling. See Blender CAM for a tool to export files for EMC. If importing from Illustrator, see this forum discussion for a note on how to handle units.
3D modeling (Opensource) Wings3D Free, OpenSource and crossplatform 3D modeler. Wings 3D is an advanced subdivision modeler that is both powerful and easy to use.
3D modeling (Opensource) Shapesmith Parametric, Open-Source 3D Modeling in your browser, can do basic primitives and addition/subtraction operations and export to STL.
3D modeling (Opensource) SolveSpace Parametric 3D CAD program for Windows, Linux, and Mac OS X. See also its 2D predecessor, SketchFlat.

Originally a Windows 1.4Mb executable that didn't have to be installed.

Does basic 3D operations as well as 2D. A good free option for basic modelling, as well as for education (the basics are the same as any full featured parametric CAD system). Outputs in .svg. .stl output, should be pretty well suited to simple modeling for 3DP.[11]

Features include: Constraints and assemblies

Forum discussions:

Videos[12]:

3D modeling (Opensource) POVray "The Persistence of Vision Raytracer (POVray) is a high-quality, Free Software tool for creating stunning three-dimensional graphics".
2D drafting/3D modeling (Opensource) lignumCAD Tool for designing furniture.
2D drafting/3D modeling (Opensource) Salome Generic platform for Pre- and Post-Processing for numerical simulation. Can be used as standalone application for generation of CAD model, its preparation for numerical calculations and post-processing of the calculation results.
3D modeling (Freeware) Caligari Truespace Commercial program released to freeware.
3D modeling (Freeware) DesignSpark Mechanical Freeware software for Windows distributed by RS Components International.[13] Free version of SpaceClaim 2012.[14]
3D modeling (Freeware) FormZ Free Freeware software for Windows 7/8/8.1 and Mac OS X 10.7 or later.[15]
3D modeling (Freeware/Windows) Microsoft: 3D Builder Create, print (List of supported printers) and scan (requires Kinect v2 sensor) functionality.[16]
3D modeling (Freeware/Windows) Pixologic::Sculptris Sculptris is a free 3D modeling program by Pixologic (The makers of ZBrush), that many find to be a good starting point for learning 3D modeling.

It is also well liked for its efficient use of computer resources, and works well with laptops, or older operating systems, such as Windows XP SP2, for example. [17]

3D modeling (opensource Linux/Mac) Antimony Computer-aided design (CAD) tool inspired by LISP, based on: framework for tracking information flow through directed acyclic graphs, geometry engine for doing CSG and includes a standard library of shapes and transforms.[18]

3D modeling (opensource) Dilay https://github.com/abau/dilay --- https://www.reddit.com/r/programming/comments/46130v/dilay_a_free_3d_sculpting_application/
3D modeling (Chrome app) Design Something Google App Store 3D modeling application running on Chrome and Firefox. Pre-defined shapes, operations include extrude and sweep.
2D drawing (Opensource) Doodle3D Freehand sketching program for iPad and Mac OS X (source available for other platforms) to extrude and revolve into 3D.

Anim8or --- Windows 3D modelling tool able to import and modify .3DS files [19]

Android app for Mattel's Thingmaker: https://play.google.com/store/apps/details?id=com.mattel.thingmakerdesign

Interesting post on efficiency: http://community.carbide3d.com/t/how-to-make-your-stl-not-take-3-days-to-calculate-tool-paths-for/169

http://www.ptc.com/cad/elements-direct/modeling/express --- Creo Elements/Direct Modeling Express 6.0 is a free version of Creo Elements/Direct Modeling 19.0 limited to assemblies with up to 60 unique parts.

As an alternative to OpenSCAD see http://www.plasm.net/ or the nascent http://makertron.io/ [20]

#### Online modelers

Some may find OnShape sufficiently free to consider it: https://www.onshape.com/ or

http://edges.io/ --- noted as working well w/ a stylus.[21]

## Post-processing

Voronoi hollowing: http://www.voronator.com/ [23][24]

## PCB

PCB (opensource) KiCad Electronic design automation (EDA) software suite for designing schematics of electronic circuits and printed circuit boards (PCB).
PCB (opensource) gEDA Full GPL'd suite and toolkit of Electronic Design Automation tools.
PCB (opensource) QS Cad Tcl/Tk EDA Package. Schematic capture through to PCB layout. Has Part editor as well as editor for Schematic and PCB Decals.
PCB (opensource) Stripboard Designer 1.0 Open source (BSD) app written in freeware Visual Basic 2008 Express for Wintel machines. See also Stripes, a GPL Java version.
PCB (opensource) DIY Layout Creator (DIYLC) GPL Java software for creating stripboard and universal board designs.

http://darwinne.github.io/FidoCadJ/download.html --- (Java) a free graphical editor for (more than) electronics

## Special Purpose

3D modeling --- Surfboards BoardCAD Opensource CAD/CAM-system (written in Java) for surfboards.
3D modeling --- furniture SketchChair Opensource CAD/CAM-system for flat-pack furniture. Forums/troubleshooting
2D CAM --- Jigsaw puzzle piece cutter (Online - Silverlight) CNC Puzzle Maker Program for cutting out puzzle shapes w/ tabs.
2D CNC --- sails Sailcut CAD Sail design and plotting software.
2D CNC --- Parametric boxes Planter Box Generator[26] Javascript to generate jointed boxes for planters (and other uses).

http://touch-mapper.org/ --- exports STL files from OpenStreetMap data.[27]

http://www.derekhugger.com/tools/dsHypoGen.zip --- dsHypoGen is a Python script that calculates parameters for generating dual stage hypocycloid reducers.[28]

http://valentina-project.org/ --- cross-platform patternmaking program which allows designers to create and model patterns of clothing.

http://commonwealthrobotics.com/#BowlerStudio ---robot development application that combines scripting and device management to allow the design of printable walking robots. [29]

### Aircraft (incl. models)

3D CNC --- foam cutting for model airplanes Jedicut CNC Program for cutting out wings and fuselages.
3D aircraft modeling OpenVSP Vehicle sketch pad. NASA opensource parametric geometry. Described as suited for general use.[30]

UIUC Airfoil Coordinates Database--- Tool to generate OpenSCAD coordinates: http://chaaawa.com/airfoils/

### Mechanical modeling

See also http://www.rs-online.com/designspark/electronics/eng/page/mechanical listed above and the CAM page which lists special-purpose programs for gears and fret and thread cutting.

## Other design software

3D CG to 3D Printable 3D model converter for Windows PC --- CGto3DPrint is a free software that converts 3D CG(Computer Graphics) models to 3D printable manifold 3D models using MeshLab for surface mesh to voxel conversion and Blender for baking color textures. Converted 3D models are automatically exported from Blender to STL file for single color 3D Printing or manually exported to PLY file for full color 3D Printing. [40]

https://github.com/DEF7/TGA2STL --- Command-line utility for generating optimized STL meshes from TGA depthmaps. [41]

### Conversion

http://kabeja.sourceforge.net/ --- works well for DXF -> SVG.[42]

## 3D Scanning

Redrawing may be a better option: https://www.reddit.com/r/cad/comments/4mmqno/im_trying_to_reverse_engineer_a_component_to_draw/

FreeLSS --- laser scanning program for the Raspberry Pi. It allows a Raspberry Pi to function as the core to a complete turn table laser scanning system.[44][45] Files for printing a 3D scanner: http://www.murobo.com/printables.html

http://ccwu.me/vsfm/ and http://www.danielgm.net/cc/ allow one to use a high quality camera rig to derive 3D shapes from photographs of objects.[46]