open3d.t.io.read_point_cloud#
- open3d.t.io.read_point_cloud(filename: os.PathLike, format: str = 'auto', remove_nan_points: bool = False, remove_infinite_points: bool = False, print_progress: bool = False) open3d.t.geometry.PointCloud#
Read a tensor
open3d.t.geometry.PointCloudfrom file.For 3D Gaussian splat data (
.ply/.splatwith the usual attributes):In-memory ``scale`` on the returned point cloud is always linear (axis lengths), which matches the Filament / rendering path.
PLY files follow the common convention of storing log-scale per axis; the reader applies
expso the tensor attributescaleis linear.SPLAT files store linear scales already; no conversion is applied.
When writing PLY from a Gaussian splat cloud,
write_point_cloudconvertsscaleback to log-space for the same file convention.- Parameters:
filename (os.PathLike) – Path to file.
format (str, optional, default='auto') – The format of the input file. When not specified or set as
auto, the format is inferred from file extension name.remove_nan_points (bool, optional, default=False) – If true, all points that include a NaN are removed from the PointCloud.
remove_infinite_points (bool, optional, default=False) – If true, all points that include an infinite value are removed from the PointCloud.
print_progress (bool, optional, default=False) – If set to true a progress bar is visualized in the console.
- Returns:
open3d.t.geometry.PointCloud