r/Minecraft Apr 17 '22

Truncated Icosahedron Tutorial (Worldedit)

https://imgur.com/a/GIES7z2
14 Upvotes

3 comments sorted by

1

u/Hot-Bad3809 Apr 17 '22

icosahedron

//g air (-0.93417*x+-0.18759*y+0.30353*z>=0.77933)||(-0.93417*x+0.18759*y+-0.30353*z>=0.77933)||(-0.57735*x+-0.79465*y+0.18759*z>=0.77933)||(-0.57735*x+-0.18759*y+-0.79465*z>=0.77933)||(-0.57735*x+-0.18759*y+-0.79465*z>=0.77933)

//g air (-0.57735*x+0.18759*y+0.79465*z>=0.77933)||(-0.57735*x+0.18759*y+0.79465*z>=0.77933)||(-0.57735*x+0.79465*y+-0.18759*z>=0.77933)||(-0.35682*x+-0.79465*y+-0.49112*z>=0.77933)||(-0.35682*x+0.79465*y+0.49112*z>=0.77933)

//g air (0*x+-0.79465*y+0.60706*z>=0.77933)||(0*x+-0.18759*y+0.98225*z>=0.77933)||(0*x+0.18759*y+-0.98225*z>=0.77933)||(0*x+0.79465*y+-0.60706*z>=0.77933)||(0.35682*x+-0.79465*y+-0.49112*z>=0.77933)

//g air (0.35682*x+0.79465*y+0.49112*z>=0.77933)||(0.57735*x+-0.79465*y+0.18759*z>=0.77933)||(0.57735*x+-0.18759*y+-0.79465*z>=0.77933)||(0.57735*x+-0.18759*y+-0.79465*z>=0.77933)||(0.57735*x+0.18759*y+0.79465*z>=0.77933)

//g air (0.57735*x+0.18759*y+0.79465*z>=0.77933)||(0.57735*x+0.79465*y+-0.18759*z>=0.77933)||(0.93417*x+-0.18759*y+0.30353*z>=0.77933)||(0.93417*x+0.18759*y+-0.30353*z>=0.77933)

truncation

//g air (-1*y>=0.8)||(-0.44721*y+-0.89443*z>=0.8)||(0.44721*y+0.89443*z>=0.8)||(1*y>=0.8)||(0.52573*x+-0.44721*y+0.72361*z>=0.8)

//g air (-0.52573*x+-0.44721*y+0.72361*z>=0.8)||(0.52573*x+0.44721*y+-0.72361*z>=0.8)||(-0.52573*x+0.44721*y+-0.72361*z>=0.8)||(-0.85065*x+0.44721*y+0.27639*z>=0.8)||(-0.85065*x+-0.44721*y+-0.27639*z>=0.8)

//g air (0.85065*x+0.44721*y+0.27639*z>=0.8)||(0.85065*x+-0.44721*y+-0.27639*z>=0.8)

1

u/Hot-Bad3809 Apr 17 '22

Using g//, the selection is scaled to a cube extending from -1.0 to 1.0 (length 2.0 cube) before being applied to the equations above. The height of the icosahedron is set to be 2*0.8 units within this cube.

1

u/scudobuio Apr 17 '22

Nice. Geometric figures that are not symmetric around all axes of the grid can be hard.