I know that if I rotate an object that expands javafx.scene.shape.Shape
, I can convert it to 3D space, although it was primarily intended for 2D (at least as far as I know).
Let's say I have a three-dimensional scene (using a perspective camera and a depth buffer), where there are various MeshView
. Some of them are used for areas, others for lines. In both cases, these shapes must be triangulated in order to draw them with a help TriangleMesh
that is often non-trivial.
Now, when I change the drawing of these lines to use the class Polyline
, the performance crash is terrible and strange artifacts arise. I thought I could benefit from the fact that the polyline has fewer vertices, and the developer does not need to program triangulation programmatically.
Is it advisable to use shapes that expand javafx.scene.shape.Shape
in three-dimensional space? How are they made inside?
source
share