Bug 517770 - GeometryNode does not correctly render Pie and Arc
Summary: GeometryNode does not correctly render Pie and Arc
Status: ASSIGNED
Alias: None
Product: GEF
Classification: Tools
Component: GEF FX (show other bugs)
Version: 1.1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 5.0.0 (Oxygen) RC3   Edit
Assignee: Matthias Wienand CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-03 10:30 EDT by Matthias Wienand CLA
Modified: 2017-06-03 10:48 EDT (History)
0 users

See Also:


Attachments
Incorrect rendering of Arc. (3.27 KB, image/png)
2017-06-03 10:30 EDT, Matthias Wienand CLA
no flags Details
Incorrect rendering of Pie (3.63 KB, image/png)
2017-06-03 10:31 EDT, Matthias Wienand CLA
no flags Details
Correct rendering of the outline of the Pie (3.78 KB, image/png)
2017-06-03 10:31 EDT, Matthias Wienand CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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();