from .. import util import numpy as np class HeaderError(Exception): # the exception raised if an STL file object doesn't match its header pass # define a numpy datatype for the data section of a binary STL file # everything in STL is always Little Endian # this works natively on Little Endian systems, but blows up on Big Endians # so we always specify byteorder _stl_dtype = np.dtype([('normals', '