[gl2ps] Problem with BSP printing (reason found)
Shahzad MUZAFFAR
Shahzad.Muzaffar at cern.ch
Tue Feb 14 12:45:06 CET 2006
Hello,
I have already mentioned (in one of my previous email) about the
problem with BSP printing not working properly in 1.2.3 and up releases
(i.e. printing in reverse order). I think I have found the reason. The
problem is in the gl2psRescaleAndOffset() method. The problem occurs
when the scaleZ becomes > 100000. Because at scaleZ > 100000 the
z-coordinates of all primitive become > 100000 which is above the EYE
set in the gl2psPrintPrimitives() method. Thats why we see eps/pdf files
printed in reverse order.
I have added this line in gl2psRescaleAndOffset() method
if (scaleZ > 100000.F) scaleZ=100000;
to force the Z scaling. And now printing works properly. Cheers,
--Shahzad Muzaffar