trimesh.visual.objects module

objects.py

Deal with objects which hold visual properties, like ColorVisuals and TextureVisuals.

Functions

concatenate(visuals, *args)

Concatenate multiple visual objects.

create_visual(**kwargs)

Create Visuals object from keyword arguments.

trimesh.visual.objects.concatenate(visuals, *args)

Concatenate multiple visual objects.

Parameters
  • visuals (ColorVisuals object, or list of same) –

  • *args (ColorVisuals object, or list of same) –

Returns

concat

Return type

ColorVisuals object

trimesh.visual.objects.create_visual(**kwargs)

Create Visuals object from keyword arguments.

Parameters
  • face_colors ((n,3|4) uint8, colors) –

  • vertex_colors ((n,3|4) uint8, colors) –

  • mesh (Trimesh object) –

Returns

visuals

Return type

ColorVisuals object.