DEMutilities. correct_stl_normals

In order to be able to use this module import it like this:

import DEMutilities.correct_stl_normals
#or assign it to a shorter name
import DEMutilities.correct_stl_normals as cor
DEMutilities.correct_stl_normals.make_stl_normals_consistent(stlname_in, stlname_out, tmpdir='./correct_stl_normals_tmp_dir/', binary=False, multisolid=True)

Make normals consistent in a given stl file, writing a ‘corrected’ version to a new file

A multisolid stl is (optionally) decomposed into seperate solids, which are processed sequentially and later re-combined


  • stlname_in: name of input .stl file
  • stlname_out: name of output .stl file
  • tmpdir: temporary directory in which decomposed