rcad

Solid CAD programming library


Licenses
LGPL-2.1/GPL-3.0+
Install
gem install rcad -v 0.1.2

Documentation

rcad

Solid CAD programming with Ruby

Example:

require 'rcad'
require 'rcad/gears'

# overloaded ~ operator adds stuff to the shape
# you're working on
~sub do
  gear = ~SpurGear.new(pitch_dia: 4.8.cm, h: 5.mm)

  # make a hole for an M3 screw
  ~cylinder(d: 3.mm, h: gear.zsize)
end

# STL is written automatically on exit