In trace_particle_through_mesh or search_mesh, they take a parameter called elem_ids which stores the current element the particle is located inside. But in some scenarios, it can be useful to know whether the particle is on a side or a node of an element. For example, in neutron transport, particles can move in any direction and miss elements to check for intersection with.

As a solution, Prof. @jacobmerson and I thought it could be solved by having the entity ID and entity dimension, replacing elem_id.