@@ -7,20 +7,20 @@ sidebar_label: File IO
77There is a flexible interface for loading and saving point clouds and meshes from different formats.
88
99The main usage is via the ` pytorch3d.io.IO ` object, and its methods
10- ` load_mesh ` , ` save_mesh ` , ` load_point_cloud ` and ` save_point_cloud ` .
10+ ` load_mesh ` , ` save_mesh ` , ` load_pointcloud ` and ` save_pointcloud ` .
1111
1212For example, to load a mesh you might do
1313```
1414from pytorch3d.io import IO
1515
1616device=torch.device("cuda:0")
17- mesh = IO().load_mesh("mymesh.ply ", device=device)
17+ mesh = IO().load_mesh("mymesh.obj ", device=device)
1818```
1919
2020and to save a pointcloud you might do
2121```
2222pcl = Pointclouds(...)
23- IO().save_point_cloud (pcl, "output_pointcloud.obj ")
23+ IO().save_pointcloud (pcl, "output_pointcloud.ply ")
2424```
2525
2626For meshes, this supports OBJ, PLY and OFF files.
@@ -31,4 +31,4 @@ In addition, there is experimental support for loading meshes from
3131[ glTF 2 assets] ( https://github.com/KhronosGroup/glTF/tree/master/specification/2.0 )
3232stored either in a GLB container file or a glTF JSON file with embedded binary data.
3333This must be enabled explicitly, as described in
34- ` pytorch3d/io/experimental_gltf_io.ply ` .
34+ ` pytorch3d/io/experimental_gltf_io.py ` .
0 commit comments