v0.2.1
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
stl_format.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** gmio
3 ** Copyright Fougue (24 Jun. 2016)
4 ** contact@fougue.pro
5 **
6 ** This software is a reusable library whose purpose is to provide complete
7 ** I/O support for various CAD file formats (eg. STL)
8 **
9 ** This software is governed by the CeCILL-B license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-B
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html".
14 ****************************************************************************/
15 
23 #ifndef GMIO_STL_FORMAT_H
24 #define GMIO_STL_FORMAT_H
25 
26 #include "stl_global.h"
27 #include "../gmio_core/stream.h"
28 
32 
35 {
44 };
45 
47 
58 
67 GMIO_API enum gmio_stl_format gmio_stl_format_probe_file(const char* filepath);
68 
70 
71 #endif /* GMIO_STL_FORMAT_H */
72 
#define GMIO_API
Expands either to GMIO_DECL_EXPORT or GMIO_DECL_IMPORT when respectively compiling/using the DLL...
Definition: global.h:76
enum gmio_stl_format gmio_stl_format_probe_file(const char *filepath)
Returns the format of the STL data in file at location filepath.
STL binary (big-endian)
Definition: stl_format.h:43
Definition: stl_format.h:31
enum gmio_stl_format gmio_stl_format_probe(struct gmio_stream *stream)
Returns the format of the STL data in stream.
gmio_stl_format
This enums defines the various STL formats.
Definition: stl_format.h:34
#define GMIO_C_LINKAGE_BEGIN
Expands to extern "C" { when building with a C++ compiler.
Definition: global.h:181
Global declarations for the STL module.
STL ASCII (text)
Definition: stl_format.h:39
#define GMIO_C_LINKAGE_END
Expands to } when building with a C++ compiler.
Definition: global.h:183
Unknown STL format.
Definition: stl_format.h:37
Stream that can get input from an arbitrary data source or can write output to an arbitrary data sink...
Definition: stream.h:65
STL binary (little-endian)
Definition: stl_format.h:41
Fougue © 2016