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