32 #include "../gmio_core/stream.h"
33 #include "../gmio_core/endian.h"
149 const char* filepath,
Options of function gmio_stl_read()
Definition: stl_io_options.h:34
int gmio_stl_read(struct gmio_stream *stream, struct gmio_stl_mesh_creator *mesh_creator, const struct gmio_stl_read_options *options)
Reads STL mesh from stream, format is automatically guessed.
Declaration of gmio_stl_mesh.
#define GMIO_API
Expands either to GMIO_DECL_EXPORT or GMIO_DECL_IMPORT when respectively compiling/using the DLL...
Definition: global.h:76
gmio_stl_format
This enums defines the various STL formats.
Definition: stl_format.h:34
int gmio_stl_write_file(enum gmio_stl_format format, const char *filepath, const struct gmio_stl_mesh *mesh, const struct gmio_stl_write_options *options)
Writes STL mesh to stream.
#define GMIO_C_LINKAGE_BEGIN
Expands to extern "C" { when building with a C++ compiler.
Definition: global.h:181
gmio_endianness
This enum identifies common endianness (byte order) of computer memory.
Definition: endian.h:29
Provides an interface for accessing the underlying(hidden) user mesh.
Definition: stl_mesh.h:30
int gmio_stl_write(enum gmio_stl_format format, struct gmio_stream *stream, const struct gmio_stl_mesh *mesh, const struct gmio_stl_write_options *options)
Writes STL mesh to stream.
Global declarations for the STL module.
Options of function gmio_stl_write()
Definition: stl_io_options.h:65
int gmio_stl_read_file(const char *filepath, struct gmio_stl_mesh_creator *mesh_creator, const struct gmio_stl_read_options *options)
Reads STL mesh from a file, format is automatically guessed.
#define GMIO_C_LINKAGE_END
Expands to } when building with a C++ compiler.
Definition: global.h:183
int gmio_stla_read(struct gmio_stream *stream, struct gmio_stl_mesh_creator *mesh_creator, const struct gmio_stl_read_options *options)
Reads mesh from STL ascii stream.
Declaration of gmio_stl_mesh_creator.
Provides an interface for the creation of the underlying(hidden) user mesh.
Definition: stl_mesh_creator.h:71
Stream that can get input from an arbitrary data source or can write output to an arbitrary data sink...
Definition: stream.h:65
Options for STL read/write functions.
int gmio_stlb_header_write(struct gmio_stream *stream, enum gmio_endianness byte_order, const struct gmio_stlb_header *header, uint32_t facet_count)
Writes STL binary header data to stream.
int gmio_stlb_read(struct gmio_stream *stream, struct gmio_stl_mesh_creator *mesh_creator, enum gmio_endianness byte_order, const struct gmio_stl_read_options *options)
Reads mesh from STL binary stream.