v0.3.0
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
stl_io_options.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** Copyright (c) 2016, Fougue Ltd. <http://www.fougue.pro>
3 ** All rights reserved.
4 **
5 ** Redistribution and use in source and binary forms, with or without
6 ** modification, are permitted provided that the following conditions
7 ** are met:
8 **
9 ** 1. Redistributions of source code must retain the above copyright
10 ** notice, this list of conditions and the following disclaimer.
11 **
12 ** 2. Redistributions in binary form must reproduce the above
13 ** copyright notice, this list of conditions and the following
14 ** disclaimer in the documentation and/or other materials provided
15 ** with the distribution.
16 **
17 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 ****************************************************************************/
29 
37 #ifndef GMIO_STL_IO_OPTIONS_H
38 #define GMIO_STL_IO_OPTIONS_H
39 
40 #include "stl_global.h"
41 #include "stlb_header.h"
42 #include "../gmio_core/endian.h"
43 #include "../gmio_core/stream.h"
44 #include "../gmio_core/task_iface.h"
45 #include "../gmio_core/text_format.h"
46 
54 {
63 
66 
79  struct gmio_stream* stream,
81 
94 };
95 
103 {
106 
109 
112 
123 
132  const char* stla_solid_name;
133 
142 
150 
161 };
162 
163 #endif /* GMIO_STL_IO_OPTIONS_H */
164 
Options of function gmio_stl_read()
Definition: stl_io_options.h:53
enum gmio_float_text_format stla_float32_format
The format used when writting float values as strings.
Definition: stl_io_options.h:141
bool stl_write_triangles_only
Flag allowing to skip writting of any header/footer data, but just triangles.
Definition: stl_io_options.h:122
struct gmio_task_iface task_iface
See gmio_stl_read_options::task_iface.
Definition: stl_io_options.h:108
struct gmio_stlb_header stlb_header
Header data(80-bytes)
Definition: stl_io_options.h:160
bool stla_dont_check_lc_numeric
See gmio_stl_read_options::stla_dont_check_lc_numeric.
Definition: stl_io_options.h:111
bool stla_dont_check_lc_numeric
Flag allowing to disable checking of the current locale's numeric formatting category.
Definition: stl_io_options.h:93
struct gmio_memblock stream_memblock
Used by the stream to bufferize I/O operations.
Definition: stl_io_options.h:62
80-byte data at the beginning of any STL binary file
Definition: stlb_header.h:44
Declaration of gmio_stlb_header.
struct gmio_task_iface task_iface
Optional interface by which the I/O operation can be controlled.
Definition: stl_io_options.h:65
const char * stla_solid_name
Name of the solid to appear in solid [name] facet normal ...
Definition: stl_io_options.h:132
Global declarations for the STL module.
Options of function gmio_stl_write()
Definition: stl_io_options.h:102
int64_or_long gmio_streamsize_t
Type able to represent the size(in bytes) of a stream.
Definition: stream.h:58
struct gmio_memblock stream_memblock
See gmio_stl_read_options::stream_memblock.
Definition: stl_io_options.h:105
gmio_float_text_format
This enum defines the various formats to textually represent a float.
Definition: text_format.h:43
uint8_t stla_float32_prec
The maximum number of significant digits when writting float values.
Definition: stl_io_options.h:149
Stream that can get input from an arbitrary data source or can write output to an arbitrary data sink...
Definition: stream.h:79
gmio_streamsize_t(* func_stla_get_streamsize)(struct gmio_stream *stream, struct gmio_memblock *stream_memblock)
Optional pointer to a function that returns the size(in bytes) of the STL ascii data to read...
Definition: stl_io_options.h:78
Basic memory block.
Definition: memblock.h:59
Defines an interface through which a task can be controlled.
Definition: task_iface.h:43
Fougue © 2016