glotzerlab / plato

Efficient visualization of particle data supporting several rendering engines.
https://plato-draw.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
12 stars 4 forks source link

Adjustable number of vertices for pythreejs Spheres #24

Closed bdice closed 5 years ago

bdice commented 5 years ago

https://github.com/glotzerlab/plato/blob/1b006c1dced4cd270aaf17893e588d214826296f/plato/draw/pythreejs/Spheres.py#L22-L23

@alacour and I have been manually setting this value much, much higher for our renderings with pythreejs. @klarh I'd like to make a PR, do you have advice on how to improve this?

klarh commented 5 years ago

It should be straightforward to add as an attribute using mechanisms similar to what we have in other backends. Then it's just a matter of using the value of that attribute (maybe named vertex_count?) in this line.