mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 14:20:38 +08:00
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: https://github.com/facebookresearch/pytorch3d/pull/1100 Reviewed By: MichaelRamamonjisoa Differential Revision: D50885176 Pulled By: bottler fbshipit-source-id: be75b1ec9a17a1ed87dbcf846a9072ea967aec37
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f4f2209271
commit
55638f3bae
28
tests/data/uvs.ply
Normal file
28
tests/data/uvs.ply
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user