You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: python/sample.py
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -3,10 +3,13 @@
3
3
4
4
is_numpy_available=False
5
5
try:
6
-
importnumpy
7
-
is_numpy_available=True
6
+
importnumpy
7
+
8
+
is_numpy_available=True
8
9
except:
9
-
print("NumPy not installed. Do not use numpy_*** API. If you encounter slow performance, see a performance tips for non-numpy API https://github.com/tinyobjloader/tinyobjloader/issues/275")
10
+
print(
11
+
"NumPy not installed. Do not use numpy_*** API. If you encounter slow performance, see a performance tips for non-numpy API https://github.com/tinyobjloader/tinyobjloader/issues/275"
12
+
)
10
13
11
14
filename="../models/cornell_box.obj"
12
15
@@ -47,7 +50,7 @@
47
50
# Performance note
48
51
# (direct?) array access through member variable is quite slow.
0 commit comments