MeshKit
1.0
|
00001 00015 #include "meshkit/MKCore.hpp" 00016 #include "meshkit/ModelEnt.hpp" 00017 #include "meshkit/MesquiteOpt.hpp" 00018 #include "meshkit/iGeom.hpp" 00019 #include "meshkit/iMesh.hpp" 00020 #include "meshkit/Matrix.hpp" 00021 00022 00023 using namespace MeshKit; 00024 MKCore* core; 00025 int main() 00026 { 00027 00028 MKCore my_core; 00029 core = &my_core; 00030 00031 MEntVector v; 00032 std::string file_name = (std::string) MESH_DIR + "/" + "cropSE.h5m"; 00033 core->load_mesh(file_name.c_str()); 00034 core->get_entities_by_dimension(3,v); 00035 MesquiteOpt op(core,v); 00036 //op.smooth_with_free_boundary(); 00037 op.smooth_with_fixed_boundary(); 00038 00039 op.setup_this(); 00040 op.execute_this(); 00041 00042 core->save_mesh("load_and_smooth.vtk"); 00043 return 0; 00044 }