InsightSoftwareConsortium / InsightSoftwareConsortium/itkwidgets
geometery_colors, other properties not working when passed
- Dominant language
- Python
- Stars
- 624
- Forks
- 83
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.