Scaling mesh with mesh center as pivot point #4394
Replies: 1 comment
-
Hello! from meshlib import mrmeshpy as mm
mesh = mm.loadMesh( "path/to/mesh.stl" )
scaleFactor = 2
center = mesh.computeBoundingBox().center()
scaleAroundXf = mm.AffineXf3f.xfAround( mm.Matrix3f.scale( scaleFactor ), center )
mesh.transform( scaleAroundXf ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello @Grantim!!
I'm trying to scale the imported mesh at its center

I have tried the provide solution in 2816
I want to scale the mesh at the same location as shown
thanks
Beta Was this translation helpful? Give feedback.
All reactions