To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=115096





------- Additional comments from osn...@openoffice.org Tue Nov 30 11:37:54 
+0000 2010 -------
> Many thanks for your help and reworking your previous patch
No problem ; as these b2dpolygontools functions exist, it was quite natural to 
rewrite the patch to use them...

> I think the remaining problems with the arc can be traced back to 
> void OutputDevice::DrawPolyLine where a conversion from b2dpolygon with double
> precision to a tools polygon with integer precision takes place.

I dig a little more, and indeed the problem seems to come from 
OutputDevice::DrawPolyLine but I am not sure that the problem comes only from 
the double to 
int conversion:

Ie. For the  Arc: Pt=21x208, dim = 56x56, angl = 5.67232x0.0174534
 b2dpolygontools generates the Polygon (*): 
       Pt0:pos = 66.8725x175.88, prev = _, next = 67.858x177.287
       Pt1:pos = 69.4974x180, prev = 68.6383x178.512, next = 74.6521x188.928
       Pt2:pos = 77x208, prev = 77x197.691, next = 77x208.344
       Pt3:pos = 76.9915x208.977, prev = 76.9975x208.634, next = _
which seems correct ; I will attach a picture which zooms the problematic arc, 
where I have added:
   - in blue the segments from the previous control point to position
   - and in green the segments from position to the next control point 
with the basic coordinate grid alignment.

The picture made me think that OutputDevice::DrawPolyLine had used the next 
control point of Pt0 (instead of the previous control point of Pt1) to draw the 
second spline...

(*) where 
- pos is the point obtained by poly.getB2DPoint(i)
- prev is the point obtained by poly.getPrevControlPoint(i)
- next is the point obtained by poly.getNextControlPoint(i)


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to