trimesh.visual.objects module¶
objects.py¶
Deal with objects which hold visual properties, like ColorVisuals and TextureVisuals.
- trimesh.visual.objects.concatenate(visuals, *args)¶
Concatenate multiple visual objects.
- Parameters:
visuals (ColorVisuals or list) – Visuals to concatenate
*args (ColorVisuals or list) – More visuals to concatenate
- Returns:
concat – If all are color
- Return type:
- trimesh.visual.objects.create_visual(**kwargs)¶
Create Visuals object from keyword arguments.
- Parameters:
face_colors ((n, 3|4) uint8) – Face colors
vertex_colors ((n, 3|4) uint8) – Vertex colors
mesh (trimesh.Trimesh) – Mesh object
- Returns:
visuals – Visual object created from arguments
- Return type: