#include <iostream>
#include <cassert>
#include "moab/Core.hpp"
#include "quads_to_tris.hpp"
Go to the source code of this file.
◆ MBI
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 14 of file quads_to_tris_driver.cpp.
19 std::cout <<
"Need name of input file with quads." << std::endl;
25 std::string filename = argv[1];
26 result =
MBI->load_file( filename.c_str() );
29 std::cout <<
"Error reading file." << std::endl;
36 std::cout <<
"Error converting to tris." << std::endl;
42 int len1 = filename.length();
43 filename.erase( len1 - 4 );
44 std::string filename_new = filename +
"_tris.h5m";
45 result =
MBI->write_mesh( filename_new.c_str() );
References ErrorCode, MB_SUCCESS, MBI, and quads_to_tris().
◆ mb_instance()