23 #ifndef GMIO_STL_TRIANGLE_H
24 #define GMIO_STL_TRIANGLE_H
27 #include "../gmio_core/vecgeom.h"
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