LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to find the bounding box of a 3D object

Solved!
Go to solution

Hi,

once I've loaded in a 3D picture control my 3D CAD model (for example in .stl format), I would like to found the dimension of the bounding box.

Any idea about that?

Thanks in advance

 

0 Kudos
Message 1 of 3
(3,042 Views)

D'you want the bounding box in x,y and z? If so, you can use a property node on the mesh refnum to grab the mesh vertex array. From this you just need to look for the maximum and minimum in each dimension.

 

I've attached a VI for reference (which also adds the bounding box to the scene).

 

Edit: There was a mistake in the VI I uploaded.

0 Kudos
Message 2 of 3
(3,002 Views)
Solution
Accepted by topic author gbettega

This is the solution I was searching for

Thank you

Giovanni

0 Kudos
Message 3 of 3
(2,997 Views)