Skip to content

Commit 013ff4f

Browse files
bottlerfacebook-github-bot
authored andcommitted
doc fix load_point_cloud => load_pointcloud
Summary: spelling errors in io.md see #1450 Reviewed By: davidsonic Differential Revision: D43269978 fbshipit-source-id: 4bbe1f00bdeda4c51b7620e7b9cc065840303530
1 parent a123815 commit 013ff4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/notes/io.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ sidebar_label: File IO
77
There is a flexible interface for loading and saving point clouds and meshes from different formats.
88

99
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`.
1111

1212
For example, to load a mesh you might do
1313
```
1414
from pytorch3d.io import IO
1515
1616
device=torch.device("cuda:0")
17-
mesh = IO().load_mesh("mymesh.ply", device=device)
17+
mesh = IO().load_mesh("mymesh.obj", device=device)
1818
```
1919

2020
and to save a pointcloud you might do
2121
```
2222
pcl = Pointclouds(...)
23-
IO().save_point_cloud(pcl, "output_pointcloud.obj")
23+
IO().save_pointcloud(pcl, "output_pointcloud.ply")
2424
```
2525

2626
For 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)
3232
stored either in a GLB container file or a glTF JSON file with embedded binary data.
3333
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

Comments
 (0)