trimesh.exchange.xyz module¶
- trimesh.exchange.xyz.export_xyz(cloud, write_colors=True, delimiter=None)¶
Export a PointCloud object to an XYZ format string.
- Parameters:
cloud (trimesh.PointCloud) – Geometry in space
write_colors (bool) – Write colors or not
delimiter (None or str) – What to separate columns with
- Returns:
export – Pointcloud in XYZ format
- Return type:
str
- trimesh.exchange.xyz.load_xyz(file_obj, delimiter=None, **kwargs)¶
Load an XYZ file into a PointCloud.
- Parameters:
file_obj (an open file-like object) – Source data, ASCII XYZ
delimiter (None or string) – Characters used to separate the columns of the file If not passed will use whitespace or commas
- Returns:
kwargs – Data which can be passed to PointCloud constructor
- Return type:
dict