CMSM-VCU / zoo

Peridynamics data visualization tool
MIT License
0 stars 0 forks source link

Out-of-range colors not working (0.10.3) #57

Closed rileychall closed 1 year ago

rileychall commented 1 year ago

Nodes that would receive out-of-range colors are instead not drawn at all.

rileychall commented 1 year ago
self.SetAboveRangeColor(*Color(above_color, opacity=1))

This was caused by a change in the way that opacity is interpreted with the new Pyvista Color class. Integers are assumed to be 0-255 and floats are assumed to be 0.0-1.0. So the opacity value literal should be either 1.0 or 255.

Changing to 1.0