Skip to content

Commit

Permalink
merge in main
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedh committed Feb 26, 2025
1 parent da53a53 commit 9f9ee8f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions trimesh/path/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def __init__(
vertices: Optional[ArrayLike] = None,
metadata: Optional[Mapping] = None,
process: bool = True,
colors=None,
vertex_attributes: Optional[Dict] = None,
colors: Optional[ArrayLike] = None,
vertex_attributes: Optional[Mapping] = None,
**kwargs,
):
"""
Expand All @@ -104,6 +104,10 @@ def __init__(
Any metadata about the path
process : bool
Run simple cleanup or not
colors
Set any per-entity colors.
vertex_attributes
Set any per-vertex array data.
"""

self.entities = entities
Expand Down Expand Up @@ -145,7 +149,7 @@ def process(self):
return self

@property
def colors(self):
def colors(self) -> NDArray:
"""
Colors are stored per-entity.
Expand All @@ -165,7 +169,7 @@ def colors(self):
return colors

@colors.setter
def colors(self, values):
def colors(self, values: ArrayLike):
"""
Set the color for every entity in the Path.
Expand Down

0 comments on commit 9f9ee8f

Please sign in to comment.