Here is a very simple script to create a box, using just the MoI Box factory.
The Box seems to be sitting on the x,z plane, so I may switch to the x,y plane, the original intention, with Height in the z direction.
This can be done by just re-ordering the order of the box factory inputs.
Note that there are more than one way to make this box. There is .update and .commit.
There is .calculate, and moi.geometryDatabase.addObject( box ), with objectlists.
This box is a solid, with 6 faces. If one face is deleted, the box is a joined surface, with walls and bottom of zero thickness.
The desired box has not been specified.
My concept of what the desired box could be, is that of a candy box, with open top, and 4 sides (walls), and a bottom, all of which have non-zero width.
One way to do this, as for the previous manual method several posts ago, would utilized a half dozen or so factories, in one script...
- Brian
|