-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support reading uv and uv map for ply format if texture_uv exists in …
…ply file (#1100) Summary: When the ply format looks as follows: ``` comment TextureFile ***.png element vertex 892 property double x property double y property double z property double nx property double ny property double nz property double texture_u property double texture_v ``` `MeshPlyFormat` class will read uv from the ply file and read the uv map as commented as TextureFile. Pull Request resolved: #1100 Reviewed By: MichaelRamamonjisoa Differential Revision: D50885176 Pulled By: bottler fbshipit-source-id: be75b1ec9a17a1ed87dbcf846a9072ea967aec37
- Loading branch information
1 parent
f4f2209
commit 55638f3
Showing
3 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ply | ||
format ascii 1.0 | ||
comment made by Greg Turk | ||
comment this file is a cube | ||
comment TextureFile test_nd_sphere.png | ||
element vertex 8 | ||
property float x | ||
property float y | ||
property float z | ||
property float texture_u | ||
property float texture_v | ||
element face 6 | ||
property list uchar int vertex_index | ||
end_header | ||
0 0 0 0 0 | ||
0 0 1 0.2 0.3 | ||
0 1 1 0.2 0.3 | ||
0 1 0 0.2 0.3 | ||
1 0 0 0.2 0.3 | ||
1 0 1 0.2 0.3 | ||
1 1 1 0.2 0.3 | ||
1 1 0 0.4 0.5 | ||
4 0 1 2 3 | ||
4 7 6 5 4 | ||
4 0 4 5 1 | ||
4 1 5 6 2 | ||
4 2 6 7 3 | ||
4 3 7 4 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters