MCPcopy Create free account
hub / github.com/apple/ml-pointersect / render_point_clouds

Function render_point_clouds

pointersect/inference/main.py:2059–2073  ·  view source on GitHub ↗
(
        input_point_clouds: T.Union[T.List[T.Union[PointCloud, str]], T.Tuple[T.Union[PointCloud, str]]],
        output_dir: str,
        **kwargs,
)

Source from the content-addressed store, hash-verified

2057
2058
2059def render_point_clouds(
2060 input_point_clouds: T.Union[T.List[T.Union[PointCloud, str]], T.Tuple[T.Union[PointCloud, str]]],
2061 output_dir: str,
2062 **kwargs,
2063):
2064 if not isinstance(input_point_clouds, (list, tuple)):
2065 input_point_clouds = [input_point_clouds]
2066
2067 total = len(input_point_clouds)
2068 for i in range(total):
2069 render_point_cloud(
2070 input_point_cloud=input_point_clouds[i],
2071 output_dir=os.path.join(output_dir, f'{i}'),
2072 **kwargs,
2073 )
2074
2075
2076def launch(

Callers 1

launchFunction · 0.85

Calls 1

render_point_cloudFunction · 0.85

Tested by

no test coverage detected