getFaceZProjectionWeight¶
- pyslm.support.getFaceZProjectionWeight(mesh, useConnectivity=False)¶
Utility which returns the inverse projection of the faces relative to the +ve Z direction in order to isolate side faces. This could be considered the inverse component of the overhang angle. It is calculated by using the following trigonometric identify \(\sin(\theta) = \sqrt{1-\cos^2(\theta)\).
- Parameters:
mesh (
Trimesh) – The mesh to identify the projection weightsuseConnectivity (
bool) – Uses mesh connectivity to interpolate the surface normals across
- Return type:
ndarray