How to resize the Mesh (say box)?

Hi,

I am new to WebGL. Can anybody tell me that how to resize my box (mesh). And also BoundingInfo, Ellipsoid and the VertexPosition should be updated.

Thanks for any help.

The simplest way to resize a mesh is to use its property scaling

Hi thanks for your suggestion but scaling doesn’t updates the remaining factor like ellipsoid, BoundingInfo, can you suggest anything?

I haven’t tried and checked bounding info, but what about updating the position vertices directly?
https://www.babylonjs-playground.com/#VE6GP#2

You can also bake transforms like scaling:
https://doc.babylonjs.com/resources/baking_transformations

Just updating the vertices doesn’t updates the BoundingInfo however on top of that applying the baking transformation resolved my issue and same for scaling.

Thank you so much for Baking Transformation.

1 Like