fix pts scale, save ply

Summary:
Fix:
* Scaling of point clouds for scalars
* save_ply compatible cat

Reviewed By: nikhilaravi

Differential Revision: D22298609

fbshipit-source-id: abe94a5b64baf325587202d20adfc36912cc1478
This commit is contained in:
Georgia Gkioxari
2020-07-03 10:19:58 -07:00
committed by Facebook GitHub Bot
parent 275ddade66
commit 2f0fd60186
4 changed files with 41 additions and 27 deletions

View File

@@ -510,8 +510,8 @@ class TestMeshes(TestCaseMixin, unittest.TestCase):
N = 5
for test in ["tensor", "scalar"]:
mesh = TestMeshes.init_mesh(N, 10, 100)
for force in [0, 1]:
for force in (False, True):
mesh = TestMeshes.init_mesh(N, 10, 100)
if force:
# force mesh to have computed attributes
mesh.verts_packed()