blender/intern/quadriflow/quadriflow_capi.hpp
Hans Goudey 7132c7a53c Cleanup: Replace MVertTri type with C++ vector
Similar to 7c69c8827b6552950717. Remove more unused includes.
2023-12-20 20:59:11 -05:00

41 lines
824 B
C++

/* SPDX-FileCopyrightText: 2019 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef QUADRIFLOW_CAPI_HPP
#define QUADRIFLOW_CAPI_HPP
#ifdef __cplusplus
extern "C" {
#endif
typedef struct QuadriflowRemeshData {
const float *verts;
const 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