40 std::cout <<
"Success";
45 std::cout <<
"Failure";
50 int main(
int argc,
char* argv[] )
58 bool remove_output =
true;
64 std::cout <<
" default output file: " <<
vol_file <<
" will be deleted \n";
68 remove_output =
false;
77 std::cout <<
" wrong number of arguments\n";
90 if( !pFacet )
return 1;
96 std::cout <<
"volume creation test: ";
114 std::cout <<
"can't read file\n";
121 datafile.getline( temp, 100 );
124 sscanf( temp,
" %lf %lf %lf %lf ", direction, direction + 1, direction + 2, &gridSize );
127 std::vector< double > xyz;
128 while( !datafile.eof() )
130 datafile.getline( temp, 100 );
133 int nr = sscanf( temp,
"%lf %lf %lf", &x, &y, &z );
141 int sizePolygon = (int)xyz.size() / 3;
142 if( sizePolygon < 3 )
144 std::cerr <<
" Not enough points in the polygon" << std::endl;
155 if( 2 != faces.
size() )
157 std::cerr <<
"expected 2 faces, top and bottom\n";
175 std::vector< EntityHandle > gents;
176 gents.push_back( volume );