v0.2.1
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
stl_triangle.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_TRIANGLE_H
24 #define GMIO_STL_TRIANGLE_H
25 
26 #include "stl_global.h"
27 #include "../gmio_core/vecgeom.h"
28 
31 {
32  struct gmio_vec3f n;
33  struct gmio_vec3f v1;
34  struct gmio_vec3f v2;
35  struct gmio_vec3f v3;
37 };
38 
40 
43 
45 
46 #endif /* GMIO_STL_TRIANGLE_H */
47 
struct gmio_vec3f v1
Vertex 1.
Definition: stl_triangle.h:33
void gmio_stl_triangle_compute_normal(struct gmio_stl_triangle *tri)
Computes the normal vector of triangle tri.
#define GMIO_API
Expands either to GMIO_DECL_EXPORT or GMIO_DECL_IMPORT when respectively compiling/using the DLL...
Definition: global.h:76
struct gmio_vec3f v2
Vertex 2.
Definition: stl_triangle.h:34
uint16_t attribute_byte_count
Useful only for STL binary format.
Definition: stl_triangle.h:36
#define GMIO_C_LINKAGE_BEGIN
Expands to extern "C" { when building with a C++ compiler.
Definition: global.h:181
Vector of three float coords.
Definition: vecgeom.h:27
Global declarations for the STL module.
#define GMIO_C_LINKAGE_END
Expands to } when building with a C++ compiler.
Definition: global.h:183
STL mesh triangle.
Definition: stl_triangle.h:30
struct gmio_vec3f v3
Vertex 3.
Definition: stl_triangle.h:35
struct gmio_vec3f n
Normal vector.
Definition: stl_triangle.h:32
Fougue © 2016