mymesh.utils.Face2NodeNormal#
- mymesh.utils.Face2NodeNormal(NodeCoords, NodeConn, ElemConn, ElemNormals, method='Angle')[source]#
Calculate node normal vectors based on the element face normals.
- Parameters:
NodeCoords (list) – List of nodal coordinates.
NodeConn (list) – Nodal connectivity list.
ElemConn (list) – List of elements connected to each node.
ElemNormals (list) – List of element normal vectors.
method (str, optional) –
Method used to determine node normals. The default is ‘Angle’.
Angle - performs an angle weighted average of connected element normals [ThurrnerWuthrich98]
Average - performs a simple averaging of connected element normals
MostVisible - determines the most visible normal [ALohner08]
MostVisible_Loop - non-vectorized version of MostVisible, slower but more readable
MostVisible_Iter - iterative method for determining the most visible normal [ALohner08]
MostVisible_Loop and MostVisible_Iter are included for completeness, but in general, MostVisible should be used instead.
- Returns:
NodeNormals – Unit normal vectors for each node.
- Return type:
list