m3sh.traits.
dihedral_angle#
- dihedral_angle(halfedge, degrees=False)#
Dihedral angle.
Dihedral angle along halfedge in radians, i.e., the angle between the normals of adjacent faces. The dihedral angle has a sign: assuming the outward normal field it is positive for a convex edge and negative for a concave edge.
- Parameters:
- halfedgeHalfedge
Halfedge of a triangle mesh.
- degreesbool, optional
Convert result from radians to degrees.
- Returns:
- anglefloat
Angle in degrees or radians. If halfedge or its pair is a boundary halfedge the corresponding dihedral angle does not exists and
nanis returned.