mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 22:30:35 +08:00
Allow setting verts_normals on Meshes
Summary: Add ability to set the vertex normals when creating a Meshes, so that the pluggable loaders can return them from a file. Reviewed By: nikhilaravi Differential Revision: D27765258 fbshipit-source-id: b5ddaa00de3707f636f94d9f74d1da12ecce0608
This commit is contained in:
committed by
Facebook GitHub Bot
parent
502f15aca7
commit
2bbca5f2a7
@@ -223,7 +223,7 @@ class TestMeshNormalConsistency(unittest.TestCase):
|
||||
Test Mesh Normal Consistency for a mesh known to have no
|
||||
intersecting faces.
|
||||
"""
|
||||
verts = torch.rand(1, 6, 2)
|
||||
verts = torch.rand(1, 6, 3)
|
||||
faces = torch.arange(6).reshape(1, 2, 3)
|
||||
meshes = Meshes(verts=verts, faces=faces)
|
||||
out = mesh_normal_consistency(meshes)
|
||||
|
||||
Reference in New Issue
Block a user