Files
test/intern/quadriflow/quadriflow_capi.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
795 B
C++
Raw Permalink Normal View History

/* SPDX-FileCopyrightText: 2019 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
2019-08-26 18:34:11 +02:00
#ifndef QUADRIFLOW_CAPI_HPP
#define QUADRIFLOW_CAPI_HPP
#ifdef __cplusplus
extern "C" {
#endif
struct QuadriflowRemeshData {
const float *verts;
const int *faces;
2019-08-26 18:34:11 +02:00
int totfaces;
int totverts;
float *out_verts;
int *out_faces;
2019-08-26 18:34:11 +02:00
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;
};
2019-08-26 18:34:11 +02:00
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