[gl2ps] typo in gl2psRescaleAndOffset

Christophe Geuzaine cag32 at case.edu
Wed Aug 30 23:13:28 CEST 2006


Alexander Danilov wrote:
> Hello,
> 
> I tried to use GL2PS_POLYGON_OFFSET_FILL feature, but the picture was
> very ugly. I went through gl2ps.c and find some strange thing in
> gl2psRescaleAndOffset function:
> dZdX is supposed to be (a*d-b*c)/area, but it is only a*d - b*c/area,
> the same thing goes with dZdY. I am not sure if the formula is correct,
> but when I fixed this, pictures became much better :)
> 
> I attached the patch to explain what I fixed.

Hi Alexander - Indeed, it's a typo: many thanks for the patch! I've 
merged it in my tree.

Best,

Christophe

> 
> Alexander
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gl2ps mailing list
> gl2ps at geuz.org
> http://www.geuz.org/mailman/listinfo/gl2ps


-- 
Christophe Geuzaine
Assistant Professor, Case Western Reserve University, Mathematics
http://www.case.edu/artsci/math/geuzaine