forked from miho/JCSG
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The source of the bad points can be traced back to this change
- Loading branch information
1 parent
c8dd04d
commit b0de6e1
Showing
5 changed files
with
146 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package eu.mihosoft.vrl.v3d; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
import java.io.File; | ||
import java.io.IOException; | ||
import java.nio.file.Paths; | ||
|
||
import org.junit.Test; | ||
|
||
public class StlExportTest { | ||
|
||
@Test | ||
public void makeBadSTL() throws IOException { | ||
CSG badExport2 = CSG.text(" A QUICK BROWN FOX JUMPS OVER THE LAZY DOG", 10).movey(30); | ||
CSG badExport = CSG.text("THis is some text a quick brown fox jumps over the lazy dog.", 10); | ||
// badExport2=new Cube(20).toCSG().movey(30); | ||
// badExport=new Cube(20).toCSG(); | ||
|
||
badExport=badExport.union(badExport2); | ||
String filename ="TextStl.stl"; | ||
FileUtil.write(Paths.get(filename), | ||
badExport.toStlString()); | ||
System.out.println("Load saved stl"); | ||
File file = new File(filename); | ||
CSG loaded = STL.file(file.toPath()); | ||
badExport=loaded.union(badExport2); | ||
FileUtil.write(Paths.get(filename), | ||
badExport.toStlString()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters