Comment 7 for bug 1244861

Revision history for this message
Alvin Penner (apenner) wrote :

as far as I can tell, this fixes the bbox problem, thanks Johan!

there is a remaining problem, namely: quote<First, (in my case), the inner circle of the gear is rendered quantized to a diamond shape.>
This can be fixed in the file 2geom\ellipse.cpp, routine Ellipse::transformed, line 236.
replace the line:
    if ( are_near(AM.det(), 0) )
with the line:
    if ( are_near(std::sqrt(AM.det()), 0) )

This line bypasses normal processing if the object is too small. This is using the determinant to measure the size of the object but the measurement is quadratic in the size scale, when it should be linear. Taking the square root avoids the problem. Unfortunately, this is in 2geom, so I am reluctant to commit this change, thought I would ask for comment here.