Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrIncompleteBinaryHeader = errors.New("Incomplete STL binary header, 84 bytes expected")
ErrIncompleteBinaryHeader is used when reading binary STL files with incomplete header.
var ErrUnexpectedEOF = errors.New("Unexpected end of file")
ErrUnexpectedEOF is used by ReadFile and ReadAll to signify an incomplete file.
Functions ¶
func ReadAll ¶
ReadAll reads the contents of a file into a new Mesh object. The file can be either in STL ASCII format, beginning with "solid ", or in STL binary format, beginning with a 84 byte header. Because of this, the file pointer has to be at the beginning of the file.
func ReadFile ¶
ReadFile reads the contents of a file into a new Mesh object. The file can be either in STL ASCII format, beginning with "solid ", or in STL binary format, beginning with a 84 byte header. Shorthand for os.Open and ReadAll
Types ¶
This section is empty.