Community
Participate
Working Groups
Created attachment 268735 [details] Incorrect rendering of Arc. Currently, GeometryNode does not correctly render Pie and Arc, as it can be seen in the attached screenshots. As a workaround, the outline of the Pie can be used. The issue is probably related to resize and relocate functionality of GeometryNode. I am currently looking into it.
Created attachment 268736 [details] Incorrect rendering of Pie
Created attachment 268737 [details] Correct rendering of the outline of the Pie
The ellipse from the screenshots is defined as follows: new GeometryNode<>(new Ellipse(0, 0, 100, 100)); The Arc/Pie/outline is defined as follows: new GeometryNode<>(new Pie(0, 0, 100, 100, Angle.fromDeg(45), Angle.fromDeg(120)).getOutline());
As a workaround for rendering Arc, its Path can be used. The path of the Pie is also rendered correctly. Therefore, the current workarounds for rendering Arc and Pie with GeometryNode are: new Arc(...).toPath(); new Pie(...).toPath(); new Pie(...).getOutline();