Spaces:
Sleeping
Sleeping
Fix: Update viewer to handle nTRN chunks in .vox files with new package
Browse files- requirements.txt +2 -2
- viewer.py +2 -2
requirements.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
numpy>=1.24.0
|
3 |
plotly>=5.18.0
|
4 |
-
|
|
|
1 |
+
git+https://github.com/MiguelPeFr/py-vox-io.git
|
2 |
numpy>=1.24.0
|
3 |
plotly>=5.18.0
|
4 |
+
py-vox-io
|
viewer.py
CHANGED
@@ -3,13 +3,13 @@ import numpy as np
|
|
3 |
import plotly.graph_objects as go
|
4 |
from pyvox.models import Vox
|
5 |
from pyvox.writer import VoxWriter
|
6 |
-
from pyvox.
|
7 |
|
8 |
def load_vox_model(file_path):
|
9 |
"""Load and parse a .vox file"""
|
10 |
try:
|
11 |
print(f"Attempting to parse vox file: {file_path}")
|
12 |
-
model =
|
13 |
print(f"Model parsed successfully")
|
14 |
|
15 |
voxels = model.to_dense()
|
|
|
3 |
import plotly.graph_objects as go
|
4 |
from pyvox.models import Vox
|
5 |
from pyvox.writer import VoxWriter
|
6 |
+
from pyvox.custom_parser import CustomVoxParser
|
7 |
|
8 |
def load_vox_model(file_path):
|
9 |
"""Load and parse a .vox file"""
|
10 |
try:
|
11 |
print(f"Attempting to parse vox file: {file_path}")
|
12 |
+
model = CustomVoxParser(file_path).parse()
|
13 |
print(f"Model parsed successfully")
|
14 |
|
15 |
voxels = model.to_dense()
|