Page 1 of 1

d1,d2 level program

Posted: Mon Jun 28, 2004 9:56 pm
by Theftbot
I am not a programmer, I was wondering if it is possible to make a d1,d2 level volume calculator like a single normal cube would be 8000units cubed(20X20X20)

Posted: Mon Jun 28, 2004 10:11 pm
by Topher
This is something I pseudo implimented in LVLVIEW32, but it didn't work right (the math was probably correct, but my programming most likely wasn't). Calculating the volume is pretty tricky. The way I did it was to divide the cube into 4 tetrahedrons and figure out their volume based on their side lengths. However, I never really investigated if this would work for all cases (it wouldn't work if the cube intersected itself for example).

Why do you need the volume anyway?