45 #include "../gmio_core/stream.h"
46 #include "../gmio_core/endian.h"
162 const char* filepath,
Options of function gmio_stl_read()
Definition: stl_io_options.h:52
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:89
gmio_stl_format
Various STL formats.
Definition: stl_format.h:47
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:203
gmio_endianness
Common endianness (byte order) of computer memory.
Definition: endian.h:42
Provides an interface for accessing the underlying(hidden) user mesh.
Definition: stl_mesh.h:43
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:101
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:205
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:78
Stream that can get input from an arbitrary data source or can write output to an arbitrary data sink...
Definition: stream.h:78
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.