16 Jul
2004
16 Jul
'04
3:31 a.m.
On Thu, 2004-07-15 at 17:11, Aubanel MONNIER wrote:
Layout being an array of 3 elements. The last one does not interest us here. The first one is a coefficient for the beginning of the axis (ie left for X, top for Y), the second for the end. Here, you can see the *SAME* coefficient applied to the "beginning" of the bbox and the "end of the bbox". The patch is easy and the correct code is :
bbs[pos].anchor = 0.5 * layout[0] * bbs[pos].bbox.min()[dim] + 0.5 * layout[1] * bbs[pos].bbox.max()[dim];
Could you please submit this to the patch tracker in group 0.39 FREEZE?
-mental