Bug 517770

Summary: GeometryNode does not correctly render Pie and Arc
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF FXAssignee: Matthias Wienand <matthias.wienand>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3    
Version: 1.1.0   
Target Milestone: 5.0.0 (Oxygen) RC3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Incorrect rendering of Arc.
none
Incorrect rendering of Pie
none
Correct rendering of the outline of the Pie none

Description Matthias Wienand CLA 2017-06-03 10:30:27 EDT
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.
Comment 1 Matthias Wienand CLA 2017-06-03 10:31:12 EDT
Created attachment 268736 [details]
Incorrect rendering of Pie
Comment 2 Matthias Wienand CLA 2017-06-03 10:31:31 EDT
Created attachment 268737 [details]
Correct rendering of the outline of the Pie
Comment 3 Matthias Wienand CLA 2017-06-03 10:33:30 EDT
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());
Comment 4 Matthias Wienand CLA 2017-06-03 10:48:45 EDT
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();