summaryrefslogtreecommitdiff
path: root/body/laser.scad
blob: 2b8cab936e02826e68a81f27eb22ba59085d350b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include <helpers.scad>

default_laser_d = 14;
default_laser_l = 45;

// create a body of laser with diameter `d` and
// length `l`.
// the ray starts at the origin
module laser_body(d = default_laser_d, l = default_laser_l)
{
    rotate([-90, 0, 0])
    translate([0, 0, -l])
    cylinder($fn = diameterToFn(d), d = d, h = l);
}