MCPcopy
hub / github.com/PiLiDAR/PiLiDAR / opengl_fallback

Function opengl_fallback

lib/visualization.py:22–31  ·  view source on GitHub ↗
(check=True)

Source from the content-addressed store, hash-verified

20
21
22def opengl_fallback(check=True):
23 # suppress OpenGL warnings
24 o3d.utility.set_verbosity_level(o3d.utility.VerbosityLevel.Error) # .Debug
25
26 # disable OpenGL on Raspberry Pi
27 if not check or get_platform() == 'RaspberryPi':
28 use_software_rendering = '1'
29 else:
30 use_software_rendering = '0'
31 os.environ['LIBGL_ALWAYS_SOFTWARE'] = use_software_rendering
32
33
34def __generate_colors__(n, lightness=0.5, saturation=0.8, float=False):

Callers 2

visualizeFunction · 0.85
visualize_simpleFunction · 0.85

Calls 1

get_platformFunction · 0.90

Tested by

no test coverage detected