You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Ball_merge_surface_reconstruction/examples/Ball_merge_surface_reconstruction/ball_merge_reconstruction.cpp
+13-22Lines changed: 13 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -15,38 +15,29 @@ typedef K::Point_3 Point;
15
15
16
16
intmain(int argc, char **argv)
17
17
{
18
-
double tlen;
19
18
constchar *inFilename = argv[1];//Filename
20
19
std::ifstream inStream(inFilename);//Read the file
21
20
std::vector<std::array<unsignedchar, 3>> meshVertexColors;//Variable to hold if the input has textures
22
21
Point p;
23
22
double par = atof(argv[2]);//Parameter to check IR
24
23
int option = atoi(argv[3]);//Option to select global and local variants - 1 for global and 0 for local
25
-
if (argc >= 5)//If local, there is an option to give extra optional parameter to filter long triangles
26
-
tlen = atof(argv[4]);
27
-
else
28
-
tlen = 200.0;//If not provided, default 200 will be taken
if (option == 1){//Sometimes, in the gloabl case, the largest group would be a mould created by the convex hull, just to avoid it, we will write the second largest group as well
0 commit comments