-
First config your anaconda workspace, and open the anaconda prompt
-
Second you need to install dependency
pip install -r requirements.txt
-
Last you type
ti Example.py
-
First copy your obj file to "model" , for example "Bearings.obj"
-
Second you need to modify the code in GenVoxel.py
obj_name = "Bearings"
-
Then you type
ti GenVoxel.py
-
Last you will get a voxel file like below:
- Rigidbody Simulation
- Red particle means it contact ground plane, green means it has at least one neighbour from other rigidbody