Change size of model

Hi all!

I have a newby question.
Is it possible to “scale” model.

For example, I have model with size x=10, y=10, z=10, I want make it twice smaller.
how I understood, I should divide all coordinates on 2 (x=5, y=5, z=5), but maybe exists any else easiest possibilities like some Scale method…

Hi Jane,

This is python, but I think you can easily replicate it to C#:

scaleFactor = 0.5
scaleOriginPlane = Rhino.Geometry.Plane(Rhino.Geometry.Point3d(0,0,0), Rhino.Geometry.Vector3d(0,0,1))
tmatrix = Rhino.Geometry.Transform.Scale(scaleOriginPlane, scaleFactor, scaleFactor, scaleFactor)
geo.Transform(tmatrix)  # "geo" is your model
1 Like