physarumAdv / minds_crawl

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

Remove the `Particle::normal` field #49

Open kolayne opened 3 years ago

kolayne commented 3 years ago

The normal field is currently a normal of the face the particle is located at. But this is a duplicated information (the normal is stored in the Face object already), neither normal is a property of a particle in any way. So, the field must be removed, the some_particle->map_node->get_face()->get_normal() expression should be used to retrieve a normal given a particle

https://github.com/physarumAdv/minds_crawl/blob/f4dc1c99fcceee8f8019a9a4871323e15fafaee9/src/simulation_objects/Particle.cuh#L150-L151