MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / point_cloud

Method point_cloud

tests/python/test_scene.py:135–142  ·  view source on GitHub ↗

Load a PLY and return as PointCloud if available.

(self, lf, benchmark_ply)

Source from the content-addressed store, hash-verified

133
134 @pytest.fixture
135 def point_cloud(self, lf, benchmark_ply):
136 """Load a PLY and return as PointCloud if available."""
137 result = lf.io.load(str(benchmark_ply))
138 # Access point cloud through splat_data
139 splat = result.splat_data
140 if splat is None:
141 pytest.skip("No splat data in loaded result")
142 return splat
143
144 @pytest.mark.slow
145 def test_point_cloud_size(self, point_cloud):

Calls 2

loadMethod · 0.45
skipMethod · 0.45

Tested by

no test coverage detected