-
Notifications
You must be signed in to change notification settings - Fork 0
/
CI-build-test.groovy
29 lines (27 loc) · 1.22 KB
/
CI-build-test.groovy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import eu.mihosoft.vrl.v3d.CSG
import eu.mihosoft.vrl.v3d.Cylinder
import eu.mihosoft.vrl.v3d.Hexagon
CSG simpleSyntax =new Cylinder(10,40).toCSG() // a one line Cylinder
//create a Cylinder
CSG myCylinder = new Cylinder(10, // Radius at the bottom
20, // Radius at the top
40, // Height
(int)30 //resolution
).toCSG()//convert to CSG to display ).toCSG()//convert to CSG to display
.movey(50)
//create a Cylinder
CSG pyramid = new Cylinder( 20, // Radius at the bottom
0, // Radius at the top
40, // Height
(int)4 //resolution
).toCSG()//convert to CSG to display
.movex(50)
//create a Cylinder
CSG hex = new Hexagon( 20, // Flat to flat radius
40 // Height
).toCSG()//convert to CSG to display
.movex(50)
.movey(50)
hex.setName("Hexagon")
hex.addExportFormat("svg")
return [simpleSyntax,myCylinder ,pyramid,hex]