strong performance optimizations for the backend

This commit is contained in:
Yeicor
2024-03-26 21:22:48 +01:00
parent 3de710c8b5
commit 72480d82c8
3 changed files with 22 additions and 13 deletions

View File

@@ -70,7 +70,7 @@ class GLTFMgr:
def _vertices_primitive(self) -> Primitive:
return [p for p in self.gltf.meshes[0].primitives if p.mode == POINTS][0]
def add_face(self, vertices_raw: List[Tuple[float, float, float]], indices_raw: List[Tuple[int, int, int]],
def add_face(self, vertices_raw: List[Vector], indices_raw: List[Tuple[int, int, int]],
tex_coord_raw: List[Tuple[float, float]],
color: Tuple[float, float, float, float] = (1.0, 0.75, 0.0, 1.0)):
"""Add a face to the GLTF mesh"""