Group moves far away when i want to scale
- 
t = Geom::Transformation.scaling 2
group.transform! t
i use above code to scale s group,however the group always move far away!
I can not figure it out.
anyone helps!! thanks!


 - 
Check where the origin of the group is. The scaling is relative to the group's origin.
 - 
To scale it about it's center use three scaling values and a point
t = Geom::Transformation.scaling(2, 2, 2, group.bounds.center) group.transform!(t) - 
@youngosg said:
t = Geom::Transformation.scaling 2
There is an issue with this method - it doesn't produce the same transformation as
Geom::Transformation.scaling(2, 2, 2)
The former change the 16th value in the matrix - instead of scaling the components.I'm not sure why it was implemented as such, but several render engines have had issues with that. I think even SU have issues in some cases. Think we have an issue filed to change it.
 
Advertisement