37 #ifndef GMIO_STL_TRIANGLE_H
38 #define GMIO_STL_TRIANGLE_H
41 #include "../gmio_core/vecgeom.h"
struct gmio_vec3f v1
Vertex 1.
Definition: stl_triangle.h:47
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:90
struct gmio_vec3f v2
Vertex 2.
Definition: stl_triangle.h:48
uint16_t attribute_byte_count
Useful only for STL binary format.
Definition: stl_triangle.h:50
#define GMIO_C_LINKAGE_BEGIN
Expands to extern "C" { when building with a C++ compiler.
Definition: global.h:195
Vector of three float coords.
Definition: vecgeom.h:41
Global declarations for the STL module.
#define GMIO_C_LINKAGE_END
Expands to } when building with a C++ compiler.
Definition: global.h:197
STL mesh triangle.
Definition: stl_triangle.h:44
struct gmio_vec3f v3
Vertex 3.
Definition: stl_triangle.h:49
struct gmio_vec3f n
Normal vector.
Definition: stl_triangle.h:46