Stephen commited on
Commit
c2162c6
·
1 Parent(s): 46ceb72

use vox method instead?

Browse files
Files changed (1) hide show
  1. sdf_export.py +2 -2
sdf_export.py CHANGED
@@ -23,11 +23,11 @@ def mesh_to_sdf_glsl(path, resolution=64):
23
  # Flatten the grid and reshape to (n,3)
24
  query_points = np.column_stack((X.ravel(), Y.ravel(), Z.ravel()))
25
 
26
- # Calculate signed distances using mesh_to_sdf
27
  distances = mesh_to_sdf.mesh_to_sdf(
28
  mesh,
29
  query_points,
30
- surface_point_method="scan",
31
  sign_method="normal",
32
  scan_count=100,
33
  scan_resolution=400,
 
23
  # Flatten the grid and reshape to (n,3)
24
  query_points = np.column_stack((X.ravel(), Y.ravel(), Z.ravel()))
25
 
26
+ # Calculate signed distances using mesh_to_sdf with voxel method
27
  distances = mesh_to_sdf.mesh_to_sdf(
28
  mesh,
29
  query_points,
30
+ surface_point_method="voxel", # Use voxel method instead of scan
31
  sign_method="normal",
32
  scan_count=100,
33
  scan_resolution=400,