Coverage for trimesh/visual/__init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.14.1, created at 2026-06-24 04:40 +0000

1# flake8: NOQA 

2""" 

3visual 

4------------- 

5 

6Handle visual properties for meshes, including color and texture 

7""" 

8 

9from .color import ( 

10 ColorVisuals, 

11 random_color, 

12 to_rgba, 

13 DEFAULT_COLOR, 

14 interpolate, 

15 uv_to_color, 

16 uv_to_interpolated_color, 

17 linear_color_map, 

18) 

19 

20from .texture import TextureVisuals 

21from .objects import create_visual, concatenate 

22 

23from . import color 

24from . import texture 

25from . import objects 

26from . import material 

27from .. import resolvers 

28 

29 

30# explicitly list imports in __all__ 

31# as otherwise flake8 gets mad 

32__all__ = [ 

33 "color", 

34 "texture", 

35 "resolvers", 

36 "TextureVisuals", 

37 "ColorVisuals", 

38 "random_color", 

39 "to_rgba", 

40 "create_visual", 

41 "DEFAULT_COLOR", 

42 "interpolate", 

43 "linear_color_map", 

44 "uv_to_color", 

45 "uv_to_interpolated_color", 

46]