This repository has been archived on 2023-03-25. You can view files and clone it, but cannot push or open issues or pull requests.
mightyscape-1.1-deprecated/extensions/fablabchemnitz/papercraft/openjscad/node_modules/@jscad/openscad-openjscad-translator/tests/conditional_and_iterator_functions/forLoopEx2b.jscad

5 lines
3.7 KiB
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], 12))]).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], 24))]).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], 36.00000000000001))]).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], 48))]).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], 72))]).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], 83.99999999999999))]).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], 96))]).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], 107.99999999999999))]).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], 119.99999999999999))]).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], 131.99999999999997))]).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], 144))]).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], 156))]).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], 168.00000000000003))]).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.00000000000003))]).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], 192.00000000000003))]).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], 204.00000000000003))]).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], 216.00000000000009))]).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], 228.00000000000009))]).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.00000000000003))]).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], 252.00000000000009))]).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], 264.00000000000006))]).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], 276.00000000000006))]).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], 288.0000000000001))]);
};