diff --git a/mrdna/readers/polygon_mesh.py b/mrdna/readers/polygon_mesh.py index 7f96df1509d0cdedcb852f425a775f951cdd384e..ec41a6774f6f5ef80373235acc999002bd4bd103 100644 --- a/mrdna/readers/polygon_mesh.py +++ b/mrdna/readers/polygon_mesh.py @@ -76,30 +76,16 @@ class MayaObj(): def get_position(self): if self.parent is not None: - return self.parent._transform_child_position(self.position) + return self.parent.get_orientation().dot(self.position) + self.parent.get_position() else: return self.position def get_orientation(self): if self.parent is not None: - return self.parent._transform_child_orientation(self.orientation) + return self.parent.get_orientation().dot(self.orientation) else: return self.orientation - def _transform_child_position(self, position): - if self.parent is not None: - p = self.parent._transform_child_position( position ) - else: - p = position - return self.orientation.dot(p)+self.position - - def _transform_child_orientation(self, orientation): - if self.parent is not None: - o = self.parent._transform_child_orientation( orientation ) - else: - o = orientation - return self.orientation.dot(o) - def get_full_name(self): ret = self.name if self.parent is not None: