We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be6a9d8 commit 51ad823Copy full SHA for 51ad823
example.py
@@ -1,7 +1,7 @@
1
import os
2
import DracoPy
3
4
-with open(os.path.join('./draco/javascript/example/models/bunny.drc'), 'rb') as draco_file:
+with open('bunny.drc', 'rb') as draco_file:
5
file_content = draco_file.read()
6
mesh_object = DracoPy.decode_buffer_to_mesh(file_content)
7
print('number of points in original file: {0}'.format(len(mesh_object.points)))
@@ -10,7 +10,7 @@
10
with open('bunny_test.drc', 'wb') as test_file:
11
test_file.write(encoding_test)
12
13
-with open(os.path.join('bunny_test.drc'), 'rb') as test_file:
+with open('bunny_test.drc', 'rb') as test_file:
14
file_content = test_file.read()
15
16
print('number of points in test file: {0}'.format(len(mesh_object.points)))
0 commit comments