Skip to content

Commit 640df37

Browse files
committed
Format code.
1 parent b205a7b commit 640df37

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

python/sample.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33

44
is_numpy_available = False
55
try:
6-
import numpy
7-
is_numpy_available = True
6+
import numpy
7+
8+
is_numpy_available = True
89
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+
)
1013

1114
filename = "../models/cornell_box.obj"
1215

@@ -47,7 +50,7 @@
4750
# Performance note
4851
# (direct?) array access through member variable is quite slow.
4952
# https://github.com/tinyobjloader/tinyobjloader/issues/275#issuecomment-753465833
50-
#
53+
#
5154
# We encourage first copy(?) varible to Python world:
5255
#
5356
# vertices = attrib.vertices
@@ -100,5 +103,7 @@
100103

101104
if is_numpy_available:
102105
print("numpy_indices = {}".format(shape.mesh.numpy_indices()))
103-
print("numpy_num_face_vertices = {}".format(shape.mesh.numpy_num_face_vertices()))
106+
print(
107+
"numpy_num_face_vertices = {}".format(shape.mesh.numpy_num_face_vertices())
108+
)
104109
print("numpy_material_ids = {}".format(shape.mesh.numpy_material_ids()))

0 commit comments

Comments
 (0)