|
|
|
|
if statement is true when the cuboids do intersection, contrary to the cout statement.if faster than it takes the light to travel from the screen to your eyes.| I need this to work as fast as possible as it will be used many times. |
minX, maxX, minY, maxY, minZ, maxZ of each cuboid. (These should be set on creation and updated only if the shape is transformed.)detailedCheck( cubeA, cubeB ) (which has a high chance of success) for the cases where the limits are OK. |
|
detailedCheck() function would need to return true if any one vertex of B is inside A or any one vertex of A is inside B. There are various ways of checking that.
|
|
| The new "cuboids" will be constantly created - sampled - and should be destroyed if they are intersecting with the previously created shapes. It will be repeated billions of time on the supercomputer cluster. |