Skip to content

Instantly share code, notes, and snippets.

@gabrielgrant
Last active April 23, 2019 22:42

Revisions

  1. gabrielgrant revised this gist Apr 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pipe.jscad
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ function main () {
    // standard 4" sewer pipe
    const innerRadius = 4/2;
    const outerRadius = 4.215/2;
    const length = 10 * 12; // by "3m" i assume you mean 10ft?
    const length = 20 * 12; // by "6m" i assume you mean 20ft?
    return difference(
    circle({r: outerRadius, center: true}),
    circle({r: innerRadius, center: true})
  2. gabrielgrant created this gist Apr 23, 2019.
    14 changes: 14 additions & 0 deletions pipe.jscad
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@

    // all measurements in inches, because AMERICA

    function main () {
    // standard 4" sewer pipe
    const innerRadius = 4/2;
    const outerRadius = 4.215/2;
    const length = 10 * 12; // by "3m" i assume you mean 10ft?
    return difference(
    circle({r: outerRadius, center: true}),
    circle({r: innerRadius, center: true})
    ).extrude({offset: [0, 0, length]})
    .rotateY(90);
    }