Avoid accessing arrays from the mesh for every element and add safety by using Span instead of raw pointers. Similar to previous commits.
Avoid accessing arrays from the mesh for every element and add safety by using Span instead of raw pointers. Similar to previous commits.