MeshKit  1.0
test_fbgeom.cpp File Reference

from one mesh file, with quads, on bottom, generate hexa meshes, by extrusion, in the z direction More...

#include "meshkit/MKCore.hpp"
#include "meshkit/FBiGeom.hpp"
#include "meshkit/SizingFunction.hpp"
#include "meshkit/ModelEnt.hpp"
#include "stdlib.h"
#include <iostream>
#include <sstream>
#include <fstream>
#include <math.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <time.h>
#include "moab/CartVect.hpp"
#include "moab/Interface.hpp"
#include "moab/Skinner.hpp"
#include <vector>
#include "TestUtil.hpp"
Include dependency graph for test_fbgeom.cpp:

Go to the source code of this file.

Functions

void extrudeQuads ()
bool create_a_set_with_tag_value (iMesh_Instance meshIface, iBase_EntityHandle *ents, int num_ents, char *tag_name, int size_name_tag, int value, iBase_EntitySetHandle &mesh_set)
int main (int argc, char *argv[])

Variables

MKCoremk
bool save_mesh = false
std::string bottom_mesh
std::string top_filename
std::string out_mesh
int nbLayers
std::vector< double > grades

Detailed Description

from one mesh file, with quads, on bottom, generate hexa meshes, by extrusion, in the z direction

Test:

it will use ray shooting from the points of the bottom quads to the top "surface" loaded with FBiGeom

it will generate -n layers of hexas, or you can give some graded ratios, with -g option

Definition in file test_fbgeom.cpp.


Function Documentation

bool create_a_set_with_tag_value ( iMesh_Instance  meshIface,
iBase_EntityHandle *  ents,
int  num_ents,
char *  tag_name,
int  size_name_tag,
int  value,
iBase_EntitySetHandle &  mesh_set 
)
Examples:
example_fbgeom.cpp.

Definition at line 49 of file test_fbgeom.cpp.

void extrudeQuads ( )

Definition at line 144 of file test_fbgeom.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 81 of file test_fbgeom.cpp.


Variable Documentation

std::string bottom_mesh
Examples:
example_fbgeom.cpp.

Definition at line 41 of file test_fbgeom.cpp.

std::vector<double> grades
Examples:
example_fbgeom.cpp.

Definition at line 45 of file test_fbgeom.cpp.

Definition at line 38 of file test_fbgeom.cpp.

int nbLayers
Examples:
example_fbgeom.cpp.

Definition at line 44 of file test_fbgeom.cpp.

std::string out_mesh
Examples:
example_fbgeom.cpp.

Definition at line 43 of file test_fbgeom.cpp.

std::string top_filename
Examples:
example_fbgeom.cpp.

Definition at line 42 of file test_fbgeom.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines