@@ -7,20 +7,20 @@ sidebar_label: File IO
7
7
There is a flexible interface for loading and saving point clouds and meshes from different formats.
8
8
9
9
The 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 ` .
11
11
12
12
For example, to load a mesh you might do
13
13
```
14
14
from pytorch3d.io import IO
15
15
16
16
device=torch.device("cuda:0")
17
- mesh = IO().load_mesh("mymesh.ply ", device=device)
17
+ mesh = IO().load_mesh("mymesh.obj ", device=device)
18
18
```
19
19
20
20
and to save a pointcloud you might do
21
21
```
22
22
pcl = Pointclouds(...)
23
- IO().save_point_cloud (pcl, "output_pointcloud.obj ")
23
+ IO().save_pointcloud (pcl, "output_pointcloud.ply ")
24
24
```
25
25
26
26
For meshes, this supports OBJ, PLY and OFF files.
@@ -31,4 +31,4 @@ In addition, there is experimental support for loading meshes from
31
31
[ glTF 2 assets] ( https://github.com/KhronosGroup/glTF/tree/master/specification/2.0 )
32
32
stored either in a GLB container file or a glTF JSON file with embedded binary data.
33
33
This must be enabled explicitly, as described in
34
- ` pytorch3d/io/experimental_gltf_io.ply ` .
34
+ ` pytorch3d/io/experimental_gltf_io.py ` .
0 commit comments