On my installlations (and on binder right now), passing some initial settings for rendering do not work.
For example, passing geometry_colors=['g'] does not cause the Mesh example to initially render green.
viewer=view(geometries=mesh, geometry_colors=['g'] , ui_collapsed=True)
However, if you start the viewer and then display it and then set the colors as an np.array
viewer.geometry_colors = np.array([[0,1,0]], dtype=np.float32)
then the colors do change dynamically. But you can't set them to start (everything is always red)..
checking the viewer.get_state('geometry_colors') indicates that the front end did receive the correct data when passing geometry_colors to the view function, but it is not properly syncing what is rendered.
On my installlations (and on binder right now), passing some initial settings for rendering do not work.
For example, passing geometry_colors=['g'] does not cause the Mesh example to initially render green.
However, if you start the viewer and then display it and then set the colors as an np.array
then the colors do change dynamically. But you can't set them to start (everything is always red)..
checking the viewer.get_state('geometry_colors') indicates that the front end did receive the correct data when passing geometry_colors to the view function, but it is not properly syncing what is rendered.