v0.1.0
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
stl_mesh.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_MESH_H
24 #define GMIO_STL_MESH_H
25 
26 #include "stl_global.h"
27 #include "stl_triangle.h"
28 
31 {
34  const void* cookie;
35 
37  uint32_t triangle_count;
38 
42  const void* cookie,
43  uint32_t tri_id,
44  struct gmio_stl_triangle* triangle);
45 };
46 
47 #endif /* GMIO_STL_MESH_H */
48 
Declaration of gmio_stl_triangle.
uint32_t triangle_count
Number of triangles in the mesh.
Definition: stl_mesh.h:37
Provides an interface for accessing the underlying(hidden) user mesh.
Definition: stl_mesh.h:30
Global declarations for the STL module.
const void * cookie
Opaque pointer on the user mesh, passed as first argument to hook functions.
Definition: stl_mesh.h:34
STL mesh triangle.
Definition: stl_triangle.h:30
void(* func_get_triangle)(const void *cookie, uint32_t tri_id, struct gmio_stl_triangle *triangle)
Pointer on a function that stores the mesh triangle of index tri_id into triangle.
Definition: stl_mesh.h:41
Fougue © 2016