Skip to content

Commit

Permalink
Fixed center of mass scaling before mesh rescaling
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmahler committed Nov 16, 2018
1 parent 02a199a commit 1643b45
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/dexnet/database/mesh_processor.py
Expand Up @@ -186,7 +186,11 @@ def _clean_mesh(self, scale, rescaling_type, use_uniform_com, rescale_mesh=False
self._standardize_pose()
if rescale_mesh:
self._rescale_vertices(scale, rescaling_type, use_uniform_com)

self.mesh_.trimesh_ = None
self.mesh_.trimesh # initialize mesh_.trimesh_
if use_uniform_com:
self.mesh_.center_of_mass = self.mesh_._compute_com_uniform()

def _remove_bad_tris(self):
""" Remove triangles with illegal out-of-bounds references """
new_tris = []
Expand Down

0 comments on commit 1643b45

Please sign in to comment.