There are quite a few programatic CAD, OpenSCAD alternatives out there. I am collecting a list of them and providing links to them here. The requirements to be included in this list are:
- Free and libre.
- They are a programming language as opposed to a GUI.
OpenSCAD: The most well known programmatic CAD program. Probably the original open source one that I am aware of.
CoffeeSCad: Solid CAD modeling in your browser, with a CoffeeScript based syntax (and lots more!)
ImplicitCAD: Powerful, Open-Source, Programmatic CAD. Haskell and extopenscad.
RapCAD: Rapid prototyping CAD IDE for RepRap and RepStrap 3D printing machines.
FABFabbers bills itself as “a new site for the 3d printing community”. It provides in browser OpenSCAD compilation and linking to github projects.
Update: Atomic let me know about BRL-CAD, the free military-grade antecessor to all of these.
Update 2: gzmask pointed out SchemeCad, a programmable 3D CAD tool that supports wireframe models and features animation. Users can program Scheme Cad by writing extensions in Scheme (a dialect of LISP). It’s available for Windows and Linux.
Update 3: CScheme is the integration of geometric kernels in a functional language.
;export the model
(define (print-brep shape filename)
(BRepTools_Write shape filename))
;translate an object
(define (translate obj x y z)
(let ((vec (make-object gp_Vec% x y z))
(trsf (make-object gp_Trsf%)))
(send trsf SetTranslation vec)
(send (make-object BRepBuilderAPI_Transform% obj trsf #t) Shape))))
;make a structure from two given object
(define (structure obj1 obj2)
(let ((compound (make-object TopoDS_Compound%))
(builder (make-object BRep_Builder%)))
(send builder MakeCompound compound)
(send builder Add compound obj1)
(send builder Add compound obj2)
;make a structure from a list of object
(define (composite lis)
(if (list? lis)
((= (length lis) 0) (error "empty list"))
((= (length lis) 1) (car lis))
(else (make-compound (car lis) (composite (cdr lis)))))
(error "Not a list")))
;build a torus
(define (torus radius circle)
(make-object BRepPrimApi_MakeTorus% radius circle))
;build a sphere
(define (sphere radius)
(make-object BRepPrimApi_MakeSphere% radius))
;calculate the torus dimension
(define (radius z)
(sqrt (- 1 (* z z))))
;make all torus objects
(define (torus-on-sphere the-list)
(lambda (z) (translate (torus (radius z) 0.05) 0.0 0.0 z))
Final export operation
;export the model
(torus-on-sphere (list -0.93 -0.75 -0.5 -0.25 0 0.25 0.5 0.75 +0.93)))
and PLaSM: a functional language for computing with geometry.
DEF points1 = <<0,0,0>,<0,3,4>,<0,6,3>,<0,10,0>>;
DEF points2 = <<3,0,2>,<2,2.5,5>,<3,6,5>,<4,8,2>>;
DEF points3 = <<6,0,2>,<8,3,5>,<7,6,4.5>,<6,10,2.5>>;
DEF points4 = <<10,0,0>,<11,3,4>,<11,6,3>,<10,9,0>>;
DEF dom = intervals:1:12;
MAP:(beziersurface:< points1 , points2 , points3 , points4 >):
(dom * dom);
Thanks to Kristoffer Josefsson for those two.
Update 4: Parametric Parts allows consumers to create and print 3D parts through our web-based platform. Anyone can make an idea come to life, even without technical expertise or prior 3D experience. It apparently uses CadQuery for its backend.
Let me know if I’ve left any off the list?