Timeline for Random placement of cylinders with random orientations
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 30, 2018 at 17:53 | comment | added | saded | The condition: if dist <radius * 2 + 0.1, it is for the case of two spheres, but for the case of cylinders, there is a condition of non-overlapping between the bases between two cylinders and the condition between the distance between the two two centers of the two cylinders. about what you have written: cubeA adjacent to cubeB, I do not understand this, the problem is that we have a cube that contains objects (i.e: cylinders as an example). | |
Dec 25, 2018 at 20:10 | comment | added | Ratt |
The issue with the test if dist < radius*2 + 0.1 is that the radius for a cylinder or cube is the distance from the center of the object to the center of the face not the edge or in the case of a cube the corner (furthest point from center). The test for a cube would be 2 * r * sqrt (3) or approximately 3.5x radius to avoid corners overlapping. This however essentially just tests against a larger sphere rejecting some possible solutions cubeA adjacent to cubeB along axis.
|
|
Jul 19, 2018 at 12:08 | history | edited | saded | CC BY-SA 4.0 |
deleted 81 characters in body
|
Jul 13, 2018 at 17:29 | history | answered | saded | CC BY-SA 4.0 |