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

fresnel Ellipsoids #31

Closed bdice closed 5 years ago

bdice commented 5 years ago

Fresnel doesn't natively support ellipsoids so this performs an approximation via convex polyhedra, similar to the pythreejs backend. See https://github.com/glotzerlab/fresnel/issues/64.

Note: It's kind of slow (rendering on my CPU), probably because the geometry checks for ray tracing a complex convex polyhedron are more expensive than if the ellipsoid were directly implemented in fresnel. image