Skip to content

Instantly share code, notes, and snippets.

View madhephaestus's full-sized avatar

Kevin Harrington madhephaestus

View GitHub Profile
@madhephaestus
madhephaestus / magazineDisplay.groovy
Created June 21, 2019 15:05 — forked from jyxiao1/magazineDisplay.groovy
3d model of a laser cutting template for a display
import java.lang.Math;
import eu.mihosoft.vrl.v3d.ext.quickhull3d.*
import eu.mihosoft.vrl.v3d.Vector3d
//Your code here
tierWidth = 145.625;
tierOverhang = 10;
tierThickness = 2;
tierHeight = 47.0202 + tierOverhang + tierThickness;
tierGap = 20;
@madhephaestus
madhephaestus / .gitignore
Last active June 28, 2024 00:50
Adding new file from BowlerStudio
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class
import eu.mihosoft.vrl.v3d.CSG
import eu.mihosoft.vrl.v3d.Cube
import eu.mihosoft.vrl.v3d.Extrude
import eu.mihosoft.vrl.v3d.Polygon
import eu.mihosoft.vrl.v3d.Slice
import eu.mihosoft.vrl.v3d.Transform
import eu.mihosoft.vrl.v3d.svg.SVGExporter
import eu.mihosoft.vrl.v3d.svg.SVGLoad
def base = new Cube(20).toCSG()
@madhephaestus
madhephaestus / triangles.groovy
Last active February 20, 2020 22:01
triangles
[
new Wedge(60,25,40).toCSG().movey(75),
new Isosceles(60,25,40).toCSG()
]
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class
@madhephaestus
madhephaestus / RoundedCylinderTest.groovy
Last active February 20, 2020 21:59
RoundedCylinder
CSG roundedCylinder = new RoundedCylinder(50,60.0)
.cornerRadius(10)// sets the radius of the corner
.toCSG()// converts it to a CSG tor display
return roundedCylinder
@madhephaestus
madhephaestus / .gitignore
Last active May 14, 2022 18:12
CamferedCylinder
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class
return [new ChamferedCube(5,5,5,1.5).toCSG(),
new ChamferedCylinder(5,5,1).toCSG().movex(10),
new Wedge(10,5,20).toCSG().movey(10),
new Isosceles(10,5,20).toCSG().movey(20),
new Fillet(5,10).toCSG().movey(30),
Parabola.extrudeByEquation(5,-0.27,0,1)
.move(20,20,0),
Parabola.coneByEquation(5,1.27,0.7)
.move(30,30,0),
@madhephaestus
madhephaestus / .gitignore
Last active May 4, 2026 01:27
Slice a csg and fillet around the slice
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class
@madhephaestus
madhephaestus / .gitignore
Last active February 1, 2025 21:16
parts that have chamfered
/.settings
/.project
/.classpath
/.cproject
/cache/
/*.class