physarumAdv / minds_crawl

Physarum polycephalum growth simulator on polyhedron surfaces written in CUDA C++
MIT License
4 stars 0 forks source link

Refactor `nodes_direction` #33

Closed tanya-kta closed 3 years ago

tanya-kta commented 3 years ago

https://github.com/physarumAdv/minds_crawl/blob/e150e176305802638d0bc9d8fce882d8008adf1b/src/simulation_objects/SimulationMap.cu#L50 Now each node has its own direction to the top neighbor, but this direction is the same for all nodes of the same face (nodes on different faces have different directions) Change nodes_directions to an array of size n_of_faces. When the first node is created on the face, direction to all top neighbors of all nodes lying on this face must be assigned in this array