I expect that this is a case of "we did the easy thing and left the hard thing till later" β only display polygons that are "easy" ie orthogonal planes, since the triangulation libraries are 2D-only. But polygons with co-planar vertices should be displayed correctly also. We could project them onto a 2D plane, do the 2D triangulation, then back-project the triangulations to 3D.
π Bug Report
If I make polygons that are planar but not on a single z (or whatever) plane, the faces of the polygon are not rendered, only the edges.
π‘ Steps to Reproduce
Result:
π‘ Expected Behavior
The face color of the polygons should be white as specified.
π Environment
napari: 0.5.0a2.dev640+gbdf6d644b Platform: macOS-14.4-arm64-arm-64bit System: MacOS 14.4 Python: 3.11.9 | packaged by conda-forge | (main, Apr 19 2024, 18:34:54) [Clang 16.0.6 ] Qt: 5.15.8 PyQt5: 5.15.9 NumPy: 1.26.4 SciPy: 1.13.0 Dask: 2024.4.2 VisPy: 0.14.2 magicgui: 0.8.2 superqt: 0.6.3 in-n-out: 0.2.0 app-model: 0.2.6 npe2: 0.7.5
OpenGL:
Screens:
Optional:
Settings path:
π‘ Additional Context
I expect that this is a case of "we did the easy thing and left the hard thing till later" β only display polygons that are "easy" ie orthogonal planes, since the triangulation libraries are 2D-only. But polygons with co-planar vertices should be displayed correctly also. We could project them onto a 2D plane, do the 2D triangulation, then back-project the triangulations to 3D.