We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76b6dd1 commit 3c708bfCopy full SHA for 3c708bf
trimesh/exchange/binvox.py
@@ -57,6 +57,7 @@ def parse_binvox_header(fp):
57
space = " "
58
if not line.startswith(binvox):
59
raise OSError("Not a binvox file")
60
+ fp.readline()
61
shape = tuple(int(s) for s in fp.readline().strip().split(space)[1:])
62
translate = tuple(float(s) for s in fp.readline().strip().split(space)[1:])
63
scale = float(fp.readline().strip().split(space)[1])
@@ -98,6 +99,7 @@ def parse_binvox(fp, writeable=False):
98
99
100
101
_binvox_header = """#binvox 1
102
+# Generated by trimesh using Patrick Min format ---
103
dim {sx} {sy} {sz}
104
translate {tx} {ty} {tz}
105
scale {scale}
0 commit comments