Blender
V2.93
intern
quadriflow
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
;
34
int
out_totverts
;
35
int
out_totfaces
;
36
37
int
target_faces
;
38
bool
preserve_sharp
;
39
bool
preserve_boundary
;
40
bool
adaptive_scale
;
41
bool
minimum_cost_flow
;
42
bool
aggresive_sat
;
43
int
rng_seed
;
44
}
QuadriflowRemeshData
;
45
46
void
QFLOW_quadriflow_remesh
(
QuadriflowRemeshData
*qrd,
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
QFLOW_quadriflow_remesh
void QFLOW_quadriflow_remesh(QuadriflowRemeshData *qrd, void(*update_cb)(void *, float progress, int *cancel), void *update_cb_data)
Definition:
quadriflow_capi.cpp:73
QuadriflowRemeshData
struct QuadriflowRemeshData QuadriflowRemeshData
update_cb
static void update_cb(PBVHNode *node, void *rebuild)
Definition:
sculpt_undo.c:120
QuadriflowRemeshData
Definition:
quadriflow_capi.hpp:26
QuadriflowRemeshData::out_totfaces
int out_totfaces
Definition:
quadriflow_capi.hpp:35
QuadriflowRemeshData::totfaces
int totfaces
Definition:
quadriflow_capi.hpp:29
QuadriflowRemeshData::out_verts
float * out_verts
Definition:
quadriflow_capi.hpp:32
QuadriflowRemeshData::preserve_sharp
bool preserve_sharp
Definition:
quadriflow_capi.hpp:38
QuadriflowRemeshData::out_totverts
int out_totverts
Definition:
quadriflow_capi.hpp:34
QuadriflowRemeshData::totverts
int totverts
Definition:
quadriflow_capi.hpp:30
QuadriflowRemeshData::out_faces
unsigned int * out_faces
Definition:
quadriflow_capi.hpp:33
QuadriflowRemeshData::faces
unsigned int * faces
Definition:
quadriflow_capi.hpp:28
QuadriflowRemeshData::preserve_boundary
bool preserve_boundary
Definition:
quadriflow_capi.hpp:39
QuadriflowRemeshData::verts
float * verts
Definition:
quadriflow_capi.hpp:27
QuadriflowRemeshData::aggresive_sat
bool aggresive_sat
Definition:
quadriflow_capi.hpp:42
QuadriflowRemeshData::rng_seed
int rng_seed
Definition:
quadriflow_capi.hpp:43
QuadriflowRemeshData::adaptive_scale
bool adaptive_scale
Definition:
quadriflow_capi.hpp:40
QuadriflowRemeshData::minimum_cost_flow
bool minimum_cost_flow
Definition:
quadriflow_capi.hpp:41
QuadriflowRemeshData::target_faces
int target_faces
Definition:
quadriflow_capi.hpp:37
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1