File tree Expand file tree Collapse file tree
src/main/java/eu/mihosoft/vrl/v3d Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434import eu .mihosoft .vrl .v3d .CSG .OptType ;
3535import eu .mihosoft .vrl .v3d .ext .imagej .STLLoader ;
3636
37- import java .io .IOException ;
3837import java .net .URI ;
3938import java .net .URL ;
4039import java .nio .file .FileSystem ;
4645import java .util .Map ;
4746
4847import 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
You can’t perform that action at this time.
0 commit comments