19 int main(
int argc,
char** argv )
22 bool delete_partition_sets =
false;
24 if( argc < 3 )
return 1;
27 char* input_mesh1 = argv[1];
31 if( !strcmp( argv[index],
"-R" ) )
33 radius = atof( argv[++index] );
35 if( !strcmp( argv[index],
"-DS" ) )
37 delete_partition_sets =
true;
40 if( !strcmp( argv[index],
"-h" ) )
42 std::cout <<
" usage: proj1 <input> <output> -R <value> -DS (delete partition sets)\n";
53 std::cout <<
" -R " <<
radius <<
" input: " << input_mesh1 <<
" output: " <<
output <<
"\n";
59 double *x_ptr, *y_ptr, *z_ptr;
63 assert( count == (
int)verts.
size() );
65 for(
int v = 0; v < count; v++ )
68 CartVect pos( x_ptr[v], y_ptr[v], z_ptr[v] );
92 if( delete_partition_sets )