Skip to content

Commit ad47aa2

Browse files
committed
formatting
1 parent 9c9d7a7 commit ad47aa2

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

  • src/main/java/eu/mihosoft/vrl/v3d

src/main/java/eu/mihosoft/vrl/v3d/STL.java

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import eu.mihosoft.vrl.v3d.CSG.OptType;
3535
import eu.mihosoft.vrl.v3d.ext.imagej.STLLoader;
3636

37-
import java.io.IOException;
3837
import java.net.URI;
3938
import java.net.URL;
4039
import java.nio.file.FileSystem;
@@ -46,7 +45,6 @@
4645
import java.util.Map;
4746

4847
import com.neuronrobotics.manifold3d.CSGManifold3d;
49-
import com.neuronrobotics.manifold3d.NonManifoldShapeError;
5048

5149
// Auto-generated Javadoc
5250
/**
@@ -79,23 +77,14 @@ public static CSG file(URL path, boolean repair) throws Throwable {
7977
* @param path
8078
* file path
8179
* @return CSG
82-
* @throws IOException
8380
* @throws Throwable
8481
*/
85-
public static CSG file(Path path) throws NonManifoldShapeError, ColinearPointsException, IOException {
82+
public static CSG file(Path path) throws Throwable {
8683

8784
if (CSG.getDefaultOptionType() == OptType.Manifold3d) {
8885
CSGManifold3d m = CSG.getManifold();
8986

90-
try {
91-
return m.fromSTL(path);
92-
} catch (NonManifoldShapeError e) {
93-
throw e;
94-
} catch (Throwable e) {
95-
// TODO Auto-generated catch block
96-
e.printStackTrace();
97-
}
98-
87+
return m.fromSTL(path);
9988
}
10089
STLLoader loader = new STLLoader();
10190

0 commit comments

Comments
 (0)