-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.cpp
39 lines (32 loc) · 978 Bytes
/
main.cpp
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
#include "Simplify.h"
extern "C"
{
void read(int *index, int indexSize, float *positions, int positionSize, bool debug = false)
{
Simplify::read(index, indexSize, positions, positionSize, debug);
}
void simplify_mesh(double target_count = 10, double agressiveness = 7.0, bool verbose = true)
{
Simplify::simplify_mesh(target_count, agressiveness, verbose);
// todo: error checking
// I prob should return int for success/error + new sizes?
// or just own function for status ?
}
void simplify_lossless()
{
Simplify::simplify_mesh_lossless();
}
void fill(int *index, float *positions, bool debug = true)
{
// this prob could have been done in the read part
Simplify::fill(index, positions, debug);
}
int getTriangeSize()
{
return Simplify::getTriangeSize();
}
int getVertexSize()
{
return Simplify::getVertexSize();
}
}