Blender  V2.93
quadriflow_capi.hpp
Go to the documentation of this file.
1 // Copyright 2019 Blender Foundation. All rights reserved.
2 //
3 // This program is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU General Public License
5 // as published by the Free Software Foundation; either version 2
6 // of the License, or (at your option) any later version.
7 //
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with this program; if not, write to the Free Software Foundation,
15 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 //
17 // Author: Sebastian Parborg, Pablo Dobarro
18 
19 #ifndef QUADRIFLOW_CAPI_HPP
20 #define QUADRIFLOW_CAPI_HPP
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 typedef struct QuadriflowRemeshData {
27  float *verts;
28  unsigned int *faces;
29  int totfaces;
30  int totverts;
31 
32  float *out_verts;
33  unsigned int *out_faces;
36 
43  int rng_seed;
45 
47  void (*update_cb)(void *, float progress, int *cancel),
48  void *update_cb_data);
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif // QUADRIFLOW_CAPI_HPP
void QFLOW_quadriflow_remesh(QuadriflowRemeshData *qrd, void(*update_cb)(void *, float progress, int *cancel), void *update_cb_data)
struct QuadriflowRemeshData QuadriflowRemeshData
static void update_cb(PBVHNode *node, void *rebuild)
Definition: sculpt_undo.c:120
unsigned int * out_faces