Skip to content

Instantly share code, notes, and snippets.

@gabrielgrant
Last active April 23, 2019 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielgrant/867b9399874bdb34e586ef1e54013942 to your computer and use it in GitHub Desktop.
Save gabrielgrant/867b9399874bdb34e586ef1e54013942 to your computer and use it in GitHub Desktop.
// all measurements in inches, because AMERICA
function main () {
// standard 4" sewer pipe
const innerRadius = 4/2;
const outerRadius = 4.215/2;
const length = 20 * 12; // by "6m" i assume you mean 20ft?
return difference(
circle({r: outerRadius, center: true}),
circle({r: innerRadius, center: true})
).extrude({offset: [0, 0, length]})
.rotateY(90);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment