mirror of
https://github.com/Relintai/fast_quadratic_mesh_simplifier.git
synced 2024-11-12 08:35:03 +01:00
Proper parameters for the bindings.
This commit is contained in:
parent
0649d435c6
commit
5ff4e07c4b
@ -75,12 +75,12 @@ Array FastQuadraticMeshSimplifier::get_arrays() {
|
||||
return simplify.get_arrays();
|
||||
}
|
||||
|
||||
void FastQuadraticMeshSimplifier::simplify_mesh(float quality) {
|
||||
simplify.simplify_mesh(quality);
|
||||
void FastQuadraticMeshSimplifier::simplify_mesh(int target_count, double agressiveness, bool verbose) {
|
||||
simplify.simplify_mesh(target_count, agressiveness, verbose);
|
||||
}
|
||||
|
||||
void FastQuadraticMeshSimplifier::simplify_mesh_lossless() {
|
||||
simplify.simplify_mesh_lossless();
|
||||
void FastQuadraticMeshSimplifier::simplify_mesh_lossless(bool verbose) {
|
||||
simplify.simplify_mesh_lossless(verbose);
|
||||
}
|
||||
|
||||
FastQuadraticMeshSimplifier::FastQuadraticMeshSimplifier() {
|
||||
@ -92,8 +92,8 @@ FastQuadraticMeshSimplifier::~FastQuadraticMeshSimplifier() {
|
||||
void FastQuadraticMeshSimplifier::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("initialize", "arrays"), &FastQuadraticMeshSimplifier::initialize);
|
||||
ClassDB::bind_method(D_METHOD("get_arrays"), &FastQuadraticMeshSimplifier::get_arrays);
|
||||
ClassDB::bind_method(D_METHOD("simplify_mesh", "quality"), &FastQuadraticMeshSimplifier::simplify_mesh);
|
||||
ClassDB::bind_method(D_METHOD("simplify_mesh_lossless"), &FastQuadraticMeshSimplifier::simplify_mesh_lossless);
|
||||
ClassDB::bind_method(D_METHOD("simplify_mesh", "target_count", "agressiveness", "verbose"), &FastQuadraticMeshSimplifier::simplify_mesh, DEFVAL(7), DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("simplify_mesh_lossless", "verbose"), &FastQuadraticMeshSimplifier::simplify_mesh_lossless, DEFVAL(false));
|
||||
|
||||
ClassDB::bind_method(D_METHOD("get_max_iteration_count"), &FastQuadraticMeshSimplifier::get_max_iteration_count);
|
||||
ClassDB::bind_method(D_METHOD("set_max_iteration_count", "value"), &FastQuadraticMeshSimplifier::set_max_iteration_count);
|
||||
|
@ -56,8 +56,8 @@ public:
|
||||
|
||||
void initialize(const Array &arrays);
|
||||
Array get_arrays();
|
||||
void simplify_mesh(float quality);
|
||||
void simplify_mesh_lossless();
|
||||
void simplify_mesh(int target_count, double agressiveness = 7, bool verbose = false);
|
||||
void simplify_mesh_lossless(bool verbose = false);
|
||||
|
||||
FastQuadraticMeshSimplifier();
|
||||
~FastQuadraticMeshSimplifier();
|
||||
|
Loading…
Reference in New Issue
Block a user