I am currently in the process of writing a program in which I read in various 3D meshes and continue working with them. The meshes usually contain triangles and quadrilaterals. I therefore wanted to use PolygonMesh from JavaFX(yz)3D so that the quadrilaterals do not have to be divided into two triangles and I can see directly in the GUI where triangles and quadrilaterals are. Now I have tried out some simple examples and came across a problem that I could not find anywhere on the Internet.
Java does not render the PolygonMesh cleanly for me. At each edge of each created surface a tiny triangle appears, which does not seem to belong there. The phenomenon only occurs in DrawMode.LINE (below is a screenshot of the problem). The code is exactly from the answer under this question (without texture): Problem with adding multiple triangle meshes to a scene in javafx
the rendered wireframe from the site mentioned intext zoom in to one front edge
Am I missing something fundamental?
The phenomenon occurs even with a single rendered surface. Is this a known bug or what can I do?