diff --git a/trimesh/path/path.py b/trimesh/path/path.py index 7602e3336..70d3944b0 100644 --- a/trimesh/path/path.py +++ b/trimesh/path/path.py @@ -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, ): """ @@ -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 @@ -145,7 +149,7 @@ def process(self): return self @property - def colors(self): + def colors(self) -> NDArray: """ Colors are stored per-entity. @@ -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.