48 std::cout <<
"Success";
53 std::cout <<
"Failure";
58 int main(
int argc,
char* argv[] )
60 filename = TestDir +
"unittest/PB.h5m";
71 std::cout <<
" default output file: " <<
filename_out <<
" will be deleted \n";
83 std::cerr <<
"Usage: " << argv[0] <<
" [geom_filename] [polygon_file] [min_dot] [output_file]" << std::endl;
94 if( !pFacet )
return 1;
104 std::cout <<
" split across test: ";
109 std::cout <<
" verify split ";
142 if( faces.
size() != 1 )
144 std::cout <<
"num faces model:" << faces.
size() <<
"\n";
157 std::cout <<
"can't read file\n";
164 datafile.getline( temp, 100 );
167 sscanf( temp,
" %lf %lf %lf %lf ", direction, direction + 1, direction + 2, &gridSize );
170 std::vector< double > xyz;
171 while( !datafile.eof() )
173 datafile.getline( temp, 100 );
176 int nr = sscanf( temp,
"%lf %lf %lf", &x, &y, &z );
184 int sizePolygon = (int)xyz.size() / 3;
185 if( sizePolygon < 2 )
187 std::cerr <<
" Not enough points in the polygon" << std::endl;