24 Sep
2004
24 Sep
'04
3:15 p.m.
bulia byak wrote:
Thanks! I tried stars.svgz again.
- You seem to disregard the item's transform when exporting it. This
only works for paths with "optimize transforms" mode. You need to multiply each point of the path by sp_item_i2d_affine(item) so that it works for shapes with transform=.
Ok, I am now doing just that, and the stray objects in the povray scene are all together now.
Example: http://troi.hous.es3.titan.com/~rjamison/inkscape/files/povtux.png
Previously, the white in the middle had been shifted to the upper-right.
Here is the transform that I am using, is this proper? :
double x1 = NR_MATRIX_DF_TRANSFORM_X(tf, bp->x1, bp->y1); double y1 = NR_MATRIX_DF_TRANSFORM_Y(tf, bp->x1, bp->y1);
Bob