Please note that this is a simplified version of @hherlyng’s post: How to compute tangent vectors on facets (2D surface parametrization) - #3 by hherlyng
i.e. the gist:
Facet normal and facet tangent vector approximation in dolfinx · GitHub
Please note that this is distributed under an MIT license, and the license with its copyright holders should be included in your snippet (if you used it)
2 Likes