Created
July 28, 2019 16:54
-
-
Save daisycamber/e769ba52ae71481f7a197bf6501394b7 to your computer and use it in GitHub Desktop.
This is a vase I made in OpenScad with a sine wave
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$fn = 16; | |
curveModifier = 40; | |
curveModifier2 = 10; | |
module uncutVase(width,height,curveModifier,curveModifier2){ | |
for(i=[0:1:height]){ | |
translate([50,50,i]) cylinder(1,sin(i+curveModifier) * curveModifier2+width/2- curveModifier2,sin(i+1+curveModifier)* curveModifier2+width/2-curveModifier2); | |
} | |
} | |
module vase(width,height,wallWidth){ | |
difference(){ | |
uncutVase(width,height,curveModifier,curveModifier2); | |
translate([width/2,width/2,wallWidth]) cylinder(height,width/2-wallWidth*2.5,width/2-wallWidth*2.5); | |
} | |
} | |
vase(100,250,10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment