Skip to content

sapir/rcad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Solid CAD programming with Ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published