Skip to content

Commit 9100813

Browse files
committed
STL issue fixes #208
1 parent fa515d4 commit 9100813

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ ChangeLog
198198
- 3.3.1 (12/09/2022)
199199
- (f) fixed texture issue + color issue + blending issue. fixed #214
200200
- (f) fixed texture issue #204
201+
- (f) fixed STL binary fallback issue #208
201202
- 3.3.0 (23/06/2022)
202203
- (n) interactive object orientation
203204
- (n) isometric, orthographic and free camera view
10 Bytes
Binary file not shown.

engine/src/main/java/org/andresoviedo/android_3d_model_engine/services/stl/STLASCIIParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ public boolean parse(URL url)
367367
{
368368
isAscii = parse(reader);
369369
}
370-
catch(InterruptedIOException e)
370+
catch(InterruptedIOException | IllegalArgumentException e)
371371
{
372372
// should never happen
373373
e.printStackTrace();

engine/src/main/java/org/andresoviedo/android_3d_model_engine/services/stl/STLLoaderTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected List<Object3DData> build() throws IOException {
9898
super.onLoad(data);
9999

100100
return Collections.singletonList(data);
101-
} catch (IOException e) {
101+
} catch (Exception e) {
102102
Log.e("STLLoaderTask", "Face '" + counter + "'" + e.getMessage(), e);
103103
throw e;
104104
} finally {

0 commit comments

Comments
 (0)