apparentlymart / python-stl

Python library for parsing and producing STL files, in both ASCII and binary formats. No longer maintained.
MIT License
9 stars 13 forks source link

Implements reading the facet attribute bytes #5

Closed zachwick closed 9 years ago

zachwick commented 9 years ago

The binary version of the STL file format allows a 2-byte unsigned integer that serves as the 'attribute byte count.' This is ususally 0, but some modelling software puts non-zero values in for various undocumented purposes.

Note that the ASCII version of the STL file format does not have an attribute byte count field.

Signed-off-by: zachwick zach@zachwick.com

Handles case where there are no attribute bytes

Signed-off-by: zachwick zach@zachwick.com

Tests for attribute bytes now pass

Signed-off-by: zachwick zach@zachwick.com

apparentlymart commented 9 years ago

Thanks! I've merged this (with a few minor style/doc modifications) as 55ff06fa150fdd364ff727a34dca5a56244ce344.