Miguelpef commited on
Commit
620dc90
·
verified ·
1 Parent(s): cdc95ff

Fix: Update viewer to handle nTRN chunks in .vox files with new package

Browse files
Files changed (2) hide show
  1. requirements.txt +2 -2
  2. viewer.py +2 -2
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- gradio>=5.13.1
2
  numpy>=1.24.0
3
  plotly>=5.18.0
4
- git+https://github.com/MiguelPeFr/py-vox-io.git
 
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.parser import VoxParser
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 = VoxParser(file_path).parse()
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()