1616
1717import eu .mihosoft .vrl .v3d .parametrics .CSGDatabase ;
1818import eu .mihosoft .vrl .v3d .svg .SVGLoad ;
19- import eu .mihosoft .vrl .v3d .thumbnail .ThumbnailImage ;
19+ import eu .mihosoft .vrl .v3d .thumbnail .ThumbnailImageCSG ;
2020import javafx .scene .paint .Color ;
2121import javafx .scene .shape .CullFace ;
2222
@@ -43,10 +43,10 @@ public void vows() throws IOException {
4343// if(parts.size()==0)
4444// throw new RuntimeException("Failed to load");
4545// try {
46- // ThumbnailImage .setImageSize(2000);
47- // ThumbnailImage .setCullFaceValue(CullFace.NONE);
48- // ThumbnailImage .writeImage(Arrays.asList(CSG.unionAll(parts)),new File(svg.getAbsolutePath()+".png")).join();
49- // ThumbnailImage .setImageSize(1000);
46+ // ThumbnailImageCSG .setImageSize(2000);
47+ // ThumbnailImageCSG .setCullFaceValue(CullFace.NONE);
48+ // ThumbnailImageCSG .writeImage(Arrays.asList(CSG.unionAll(parts)),new File(svg.getAbsolutePath()+".png")).join();
49+ // ThumbnailImageCSG .setImageSize(1000);
5050// } catch (InterruptedException e) {
5151// // Auto-generated catch block
5252// e.printStackTrace();
@@ -78,8 +78,8 @@ public void flame() throws IOException {
7878 if (parts .size ()==0 )
7979 throw new RuntimeException ("Failed to load" );
8080 try {
81- ThumbnailImage .setCullFaceValue (CullFace .NONE );
82- new ThumbnailImage ().writeImage (CSGDatabase .getInstance (),parts ,new File (svg .getAbsolutePath ()+".png" ));
81+ ThumbnailImageCSG .setCullFaceValue (CullFace .NONE );
82+ new ThumbnailImageCSG ().writeImage (CSGDatabase .getInstance (),parts ,new File (svg .getAbsolutePath ()+".png" ));
8383 } catch (Exception e ) {
8484 // Auto-generated catch block
8585 e .printStackTrace ();
@@ -110,8 +110,8 @@ public void Alexes_Bad() throws IOException {
110110// if(parts.size()==0)
111111// throw new RuntimeException("Failed to load");
112112// try {
113- // ThumbnailImage .setCullFaceValue(CullFace.NONE);
114- // ThumbnailImage .writeImage(parts,new File(svg.getAbsolutePath()+".png")).join();
113+ // ThumbnailImageCSG .setCullFaceValue(CullFace.NONE);
114+ // ThumbnailImageCSG .writeImage(parts,new File(svg.getAbsolutePath()+".png")).join();
115115// } catch (InterruptedException e) {
116116// // Auto-generated catch block
117117// e.printStackTrace();
@@ -129,8 +129,8 @@ public void box() throws IOException {
129129 SVGLoad s = new SVGLoad (svg .toURI ());
130130 ArrayList <CSG >parts =run (s );
131131 try {
132- ThumbnailImage .setCullFaceValue (CullFace .NONE );
133- new ThumbnailImage ().writeImage (CSGDatabase .getInstance (),parts ,new File (svg .getAbsolutePath ()+".png" ));
132+ ThumbnailImageCSG .setCullFaceValue (CullFace .NONE );
133+ new ThumbnailImageCSG ().writeImage (CSGDatabase .getInstance (),parts ,new File (svg .getAbsolutePath ()+".png" ));
134134 } catch (Exception e ) {
135135 // Auto-generated catch block
136136 e .printStackTrace ();
@@ -149,8 +149,8 @@ public void inside() throws IOException {
149149 SVGLoad s = new SVGLoad (svg .toURI ());
150150 ArrayList <CSG >parts =new ArrayList <>(Arrays .asList (CSG .unionAll (run (s ))));
151151 try {
152- ThumbnailImage .setCullFaceValue (CullFace .NONE );
153- new ThumbnailImage () .writeImage (CSGDatabase .getInstance (),parts ,new File (svg .getAbsolutePath ()+".png" ));
152+ ThumbnailImageCSG .setCullFaceValue (CullFace .NONE );
153+ new ThumbnailImageCSG () .writeImage (CSGDatabase .getInstance (),parts ,new File (svg .getAbsolutePath ()+".png" ));
154154 } catch (Exception e ) {
155155 // Auto-generated catch block
156156 e .printStackTrace ();
@@ -168,8 +168,8 @@ public void adversarial() throws IOException {
168168 SVGLoad s = new SVGLoad (svg .toURI ());
169169 ArrayList <CSG >parts =run (s );
170170 try {
171- ThumbnailImage .setCullFaceValue (CullFace .NONE );
172- new ThumbnailImage ().writeImage (CSGDatabase .getInstance (),parts ,new File (svg .getAbsolutePath ()+".png" ));
171+ ThumbnailImageCSG .setCullFaceValue (CullFace .NONE );
172+ new ThumbnailImageCSG ().writeImage (CSGDatabase .getInstance (),parts ,new File (svg .getAbsolutePath ()+".png" ));
173173 } catch (Exception e ) {
174174 // Auto-generated catch block
175175 e .printStackTrace ();
0 commit comments