Test render on headless service

This commit is contained in:
mmcwilliams 2018-03-04 18:42:22 -05:00
parent 1609407e6e
commit c8c7784075
1 changed files with 17 additions and 8 deletions

View File

@ -1,13 +1,16 @@
t = 0; t = 0;
include <../../libraries/threads.scad>; include <../../libraries/threads.scad>;
FINE = 60;
module base () { module base () {
$fn = 100; $fn = FINE;
BUMP = 2; BUMP = 2;
BUMPS = 6; BUMPS = 6;
TOP_H = 9.5; TOP_H = 9.5;
union() { union() {
translate([0, 0, -15])cylinder(r = 8.45, h = 20, center = true); translate([0, 0, -15])cylinder(r = 8.45, h = 20, center = true);
//hex top
//translate([0, 0, -24.5])cylinder(r = 11.1, h = 9.5, center = true, $fn = 6); //translate([0, 0, -24.5])cylinder(r = 11.1, h = 9.5, center = true, $fn = 6);
translate([0, 0, -24.5]) cylinder(r = 19 / 2, h = TOP_H, center = true); translate([0, 0, -24.5]) cylinder(r = 19 / 2, h = TOP_H, center = true);
for (i = [0 : BUMPS]) { for (i = [0 : BUMPS]) {
@ -19,17 +22,21 @@ module base () {
module lomo_bottom_screw () { module lomo_bottom_screw () {
difference () { difference () {
base(); base();
// //negative cylinder (reference)
translate([0, 0, -20]) cylinder(r = 14 / 2, h = 20, center = true, $fn = 100); //translate([0, 0, -20]) cylinder(r = 13.6 / 2, h = 20, center = true, $fn = 100);
//negative plug (reference)
//translate([0, 0, -20]) cylinder(r = 12 / 2, h = 20, center = true, $fn = FINE);
translate([0, 0, -30]) metric_thread (diameter=13.6, pitch=1.5 ,thread_size = 1.6, length = 20);
} }
difference () { difference () {
//outer screw //outer screw
translate([0, 0, -7.1]) metric_thread (diameter=10, pitch=1.5, length=27.1); //translate([0, 0, -7.1]) metric_thread (diameter=10, pitch=1.5, length=27.1);
//taper top of screw //taper top of screw
translate([0, 0, 19]) difference() { translate([0, 0, 19]) difference() {
cylinder(r = 8, h = 3.5, center = true, $fn = 100); cylinder(r = 8, h = 3.5, center = true, $fn = FINE);
cylinder(r1 = 6, r2 = 3, h = 4.5, center = true, $fn = 100); cylinder(r1 = 6, r2 = 3, h = 4.5, center = true, $fn = FINE);
} }
//hollow center //hollow center
cylinder(r = 3.8 / 2, h = 100, center = true, $fn = 60); cylinder(r = 3.8 / 2, h = 100, center = true, $fn = 60);
@ -40,11 +47,13 @@ difference() {
//center //center
translate([0, 0, 29]) lomo_bottom_screw(); translate([0, 0, 29]) lomo_bottom_screw();
//translate([37, -3.25, 0]) import("./lomo_part_fixed.stl"); //translate([37, -3.25, 0]) import("./lomo_part_fixed.stl");
translate([-50, 0, 29]) cube([100, 100, 100], center = true); translate([-25, 0, 29]) cube([50, 50, 100], center = true);
} }
//translate([0, 0, 7]) cylinder(r = 13.6 / 2, h = 20, center = true, $fn = 100);
translate([0, 0, -20]) rotate([0, 0, t]) difference() { translate([0, 0, -20]) rotate([0, 0, t]) difference() {
rotate([0, 180, 0]) import("../lomo_top_screw/lomo_top_screw.stl"); // rotate([0, 180, 0]) import("../lomo_top_screw/lomo_top_screw.stl");
//translate([-100, 0, 0])cube([200, 200, 200], center = true); //translate([-100, 0, 0])cube([200, 200, 200], center = true);
} }