How to know dimensions ?
guiguizmo a commencé cette discussion dans 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 réponses · Page 1 sur 1
Avatar de Scrubs
Administrateur

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 de Scrubs
Administrateur

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 de Scrubs
Administrateur

Yes, this is it.

Publicité
2 participants
Avatar de guiguizmo
Avatar de Scrubs

LEGO, le logo LEGO, la minifigurine et les configurations des briques et tenons sont des marques déposées de LEGO Group of Companies. ©2024 The LEGO Group.

Mecabricks, le logo Mecabricks et tout le contenu non couvert par les droits d'auteur du groupe LEGO sont, sauf indication contraire, ©2011-2024 Mecabricks.