bfieldtools.utils.fix_normals

bfieldtools.utils.fix_normals(mesh, origin=array([0, 0, 0]))

Attempts to fix face windings and normals such that normals are always “pointing out” from the origin.

Parameters
mesh: Trimesh mesh object
origin: array-like (3, )

Specified from where the normals should “point out”

Returns
mesh: modified Trimesh object