Skip to content

Commit

Permalink
add type annotations to trimesh.Scene
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Jan 26, 2024
1 parent 5019241 commit 6c84cfb
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 81 deletions.
4 changes: 2 additions & 2 deletions trimesh/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def vertex_faces(self) -> NDArray[int64]:
return vertex_faces

@caching.cache_decorator
def bounds(self) -> NDArray[float64]:
def bounds(self) -> Optional[NDArray[float64]]:
"""
The axis aligned bounds of the faces of the mesh.
Expand All @@ -547,7 +547,7 @@ def bounds(self) -> NDArray[float64]:
return np.array([in_mesh.min(axis=0), in_mesh.max(axis=0)])

@caching.cache_decorator
def extents(self) -> NDArray[float64]:
def extents(self) -> Optional[NDArray[float64]]:
"""
The length, width, and height of the axis aligned
bounding box of the mesh.
Expand Down
1 change: 0 additions & 1 deletion trimesh/exchange/gltf.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ def export_glb(
extension_webp=extension_webp,
)


# A bufferView is a slice of a file
views = _build_views(buffer_items)

Expand Down
Loading

0 comments on commit 6c84cfb

Please sign in to comment.