Creating a rectangle or box with length width height

Hey guys, this sounds like a stupid question but I really can’t figure the best way to do this. I want to load (from a file) a list of “points” where each of them will have a length, width, and height. So after loading the file I need to draw different rectangles on the screen at different locations and different sizes. I tried to do so with BOX but the SPATIAL class is limited to .scale() and the volumes created by the L * W * H are quite different that I am not sure how to convert from that and scale it. Is there any easy way to do so?

You specify the half extents when you create a box, so just use L/2 * W/2 * H/2 for x,y,z

1 Like

thank you :slight_smile: