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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginAdvertisement