How to know dimensions ?
guiguizmo started this discussion in Help and Tips

Hello all,

Is it to possible, in mecabricks or in blender (or elsewhere) to know what are the dimensions of a model created here ?

Thanks.

5 replies · Page 1 of 1
Avatar of Scrubs
Administrator

Hello,

There is no easy ways to find the dimensions in Mecabricks - If you know a bit about programming you might be able to get the dimensions of the bounding box in the browser console - I can provide the code to enter if needed.

Otherwise in Blender, don't scale your model, select edit mode (TA😎 and pick a vertex at the extremity. It will give you the global coordinates of this point.

I know a bit about programming, I'm a programmer ^^

So if you can give me the code ...

Thanks !

Avatar of Scrubs
Administrator

In the console type:
var size = new THREE.Box3();
size.setFromObject2(scene.main);

It will give the min and max values (in mm) on all 3 axes.

Thanks for the code.

When executing it on a scene with only a 1 x 1 brick, I get :

Max Object { x=3.96, y=11.4, z=3.96 }
Min Object { x=-3.96, y=0.02, z=-3.960001 }

Does this meen that the brick is 7.92mm by 11.2mm by 7.92mm approximately ?

Avatar of Scrubs
Administrator

Yes, this is it.

Advertising
2 participants
Avatar of guiguizmo
Avatar of Scrubs

LEGO, the LEGO logo, the Minifigure, and the Brick and Knob configurations are trademarks of the LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, the Mecabricks logo and all content not covered by The LEGO Group's copyright is, unless otherwise stated, ©2011-2024 Mecabricks.