5 lines
869 B
JavaScript
5 lines
869 B
JavaScript
function main(){
|
|
|
|
|
|
return CSG.sphere({center: [0,0,0], radius: 1, resolution: 5}).translate([0,10,0]).transform(CSG.Matrix4x4.rotation([0,0,0], [1,0,0], 0)).union([CSG.sphere({center: [0,0,0], radius: 1, resolution: 5}).translate([0,10,0]).transform(CSG.Matrix4x4.rotation([0,0,0], [1,0,0], 60))]).union([CSG.sphere({center: [0,0,0], radius: 1, resolution: 5}).translate([0,10,0]).transform(CSG.Matrix4x4.rotation([0,0,0], [1,0,0], 120))]).union([CSG.sphere({center: [0,0,0], radius: 1, resolution: 5}).translate([0,10,0]).transform(CSG.Matrix4x4.rotation([0,0,0], [1,0,0], 180))]).union([CSG.sphere({center: [0,0,0], radius: 1, resolution: 5}).translate([0,10,0]).transform(CSG.Matrix4x4.rotation([0,0,0], [1,0,0], 240))]).union([CSG.sphere({center: [0,0,0], radius: 1, resolution: 5}).translate([0,10,0]).transform(CSG.Matrix4x4.rotation([0,0,0], [1,0,0], 300))]);
|
|
}; |