random box creator
I need some help. I'm fairly new to MaxScript and I have a site plan (as a editable poly plane) and I want to populate it randomly with boxes. These boxes represent different uses of the building proposal, there are 8 in total. Although the cross sectional area of the boxes can be random the overall volume of each of the boxes has to be a fixed amount.
For example one box will be a workshop so have a volume of 150 cubic metres, and another box will be a shop and therefore require a volume of only 50 cubic metres and so on.
I'm ok with creating the rollout dialog with the buttons (one for each different use) and creating a randomly sized box with a fixed height but a variable length and width but am not sure about a couple of things:
How does one ensure that the volume remains a constant?
How can I ensure that the boxes created sit within the site boundary poly?
Any help would be hugely helpful.