blob: 80939dc9fb2b1fa4d5efe24983db08f769fd8ba3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2019 Blender Foundation. All rights reserved. */
#ifndef QUADRIFLOW_CAPI_HPP
#define QUADRIFLOW_CAPI_HPP
#ifdef __cplusplus
extern "C" {
#endif
typedef struct QuadriflowRemeshData {
float *verts;
int *faces;
int totfaces;
int totverts;
float *out_verts;
int *out_faces;
int out_totverts;
int out_totfaces;
int target_faces;
bool preserve_sharp;
bool preserve_boundary;
bool adaptive_scale;
bool minimum_cost_flow;
bool aggresive_sat;
int rng_seed;
} QuadriflowRemeshData;
void QFLOW_quadriflow_remesh(QuadriflowRemeshData *qrd,
void (*update_cb)(void *, float progress, int *cancel),
void *update_cb_data);
#ifdef __cplusplus
}
#endif
#endif // QUADRIFLOW_CAPI_HPP
|