Skip to content

Instantly share code, notes, and snippets.

$fn=100;
//Note: give it 5-7 min to render :/
//Baby yoda svg file needs to be in same
//Directory as this openscad file
svg_file="baby_yoda.svg";
heigth = 80;
length = 80;
depth = 20;
rim = 5;
$fn=100;
size = 30;
//pyramid
translate([2*size, size, 0]){
rotate(45){
cylinder(h=size, r1=size, r2=0, $fn=4);
@patmandenver
patmandenver / create_text_over_images.jsx
Last active March 27, 2020 13:37
Scirpt that reads in json file and puts text over image and creates thumbnail
#target photoshop
//#include "json2.js" // jshint ignore:line
//Using this file https://github.com/douglascrockford/JSON-js/blob/master/json2.js
//Had to download and install it
main();
var base_dir = ""
function main() {
@patmandenver
patmandenver / prusa_faceshield_rc3.scad
Last active April 3, 2020 02:45
Open scad prusa faceshield stacking code
$fn=100;
headband_file="Prusa_RC3_PLA.stl";
num=2;
adjust_base=12.5;
adjust_base_x=7.8;
support_thickness=1.2;
support_bridge=1.5;
heigth=20;
$fn=100;
headband_file="empty_test.stl";
num=2;
heigth=5;
bump=0.25;
cylinder_size=0.5;
extend_for_testing=0; //Set to 10 to see cylinders
//This code is to attempt to update
//the 3dverkstan design to help it
//print stacked better
$fn=100;
headband_file="Visor_Frame_NORTH_AMERICA_LETTER_v3_Thicc.stl";
difference(){
import(headband_file, convexity=3);
$fn=100;
headband_file="Prusa_RC3_PLA.stl";
num=2;
adjust_base=12.5;
adjust_base_x=7.8;
support_thickness=1.2;
support_bridge=1.5;
heigth=20;
$fn=100;
headband_file="headband-15-mm-height-no-hex_pla.stl";
num=5;
adjust_base_z=3.28;
adjust_base_x=0;
adjust_base_y=-8.95;
support_thickness=1.2;
support_bridge=1.5;
@patmandenver
patmandenver / adjustable.scad
Created April 5, 2020 23:48
For justin to fix a model
$fn=100;
stl_file="mount_file.stl";
remove=3.0;
union(){
difference(){
translate([-120,-90]){
import(stl_file, convexity=3);
@patmandenver
patmandenver / stacking.scad
Created April 6, 2020 23:14
With Squares
$fn=100;
headband_file="Prusa_RC3_PETG.stl";
num=4;
adjust_base=12.5;
adjust_base_x=7.8;
support_thickness=1.2;
support_bridge=1.5;
heigth=20;