MCPcopy Create free account
hub / github.com/computational-imaging/bacon / __init__

Method __init__

dataio.py:634–642  ·  view source on GitHub ↗
(self, pointcloud_path, num_samples=30**3,
                 coarse_scale=1e-1, fine_scale=1e-3)

Source from the content-addressed store, hash-verified

632 ''' convert point cloud to SDF '''
633
634 def __init__(self, pointcloud_path, num_samples=30**3,
635 coarse_scale=1e-1, fine_scale=1e-3):
636 super().__init__()
637 self.num_samples = num_samples
638 self.pointcloud_path = pointcloud_path
639 self.coarse_scale = coarse_scale
640 self.fine_scale = fine_scale
641
642 self.load_mesh(pointcloud_path)
643
644 def __len__(self):
645 return 10000 # arbitrary

Callers 1

__init__Method · 0.45

Calls 1

load_meshMethod · 0.95

Tested by

no test coverage detected