Updating USD golden file and exporter_test.py

This commit is contained in:
Abhishek Joshi
2024-08-16 12:06:25 -05:00
parent 58dc62c4ec
commit 39cbe5d5b0
6 changed files with 62 additions and 33 deletions
+3 -3
View File
@@ -254,14 +254,14 @@ class TriangleMesh:
return TriangleMesh(vertices, triangles, triangle_uvs)
def translate(self, translation: np.array):
def translate(self, translation: np.ndarray) -> None:
self.vertices = self.vertices + translation
def rotate(self, rotation: np.array, center: Tuple[float, ...]):
def rotate(self, rotation: np.ndarray, center: Tuple[float, ...]) -> None:
translated_point = self.vertices - center
self.vertices = np.dot(translated_point, rotation) + center
def scale(self, scale: np.array):
def scale(self, scale: np.ndarray) -> None:
self.vertices = self.vertices * scale
def get_center(self):