MeshKit  1.0
SurfaceFacetMeshReader Class Reference

A class for generating facet-based mesh of geometric surfaces INPUT: one or more ModelEnts representing geometric surfaces MESH TYPE(S): MBEDGE, MBVERTEX, MBTRI OUTPUT: a set of triangles, edges and verticesfor each ModelEnt DEPENDENCIES: meshkit build with iGeom interface. More...

#include <meshkit/SurfaceFacetMeshReader.hpp>

Inheritance diagram for SurfaceFacetMeshReader:

List of all members.

Public Member Functions

 SurfaceFacetMeshReader (MKCore *mk, const MEntVector &ments)
 Construction function for the Solid CAD Surface Mesher.
 ~SurfaceFacetMeshReader ()
 Decstructor function for the Solid CAD Surface Mesher.
virtual void setup_this ()
 Pure virtual, derived class must define.
virtual void execute_this ()
 Pure virtual, derived class must define.
virtual const moab::EntityType * mesh_types_arr () const
 Return the mesh entity types operated on by this scheme.
void set_mesh_params (double faceting_tolerance=0, double geom_resabs=0)

Static Public Member Functions

static bool can_mesh (iBase_EntityType dim)
 Function returning whether this scheme can mesh entities of the specified dimension.
static bool can_mesh (ModelEnt *me)
 Function returning whether this scheme can mesh the specified entity.
static const char * name ()
 Get the class name.
static const moab::EntityType * output_types ()
 Function that names the output types of this meshing class.

Private Member Functions

void facet (ModelEnt *surf)
 Function to for creating triangles and adding them to the ModelEntity's meshset.
double vtx2vtx_dist (iGeom::EntityHandle vtx1, iMesh::EntityHandle vtx2)

Private Attributes

double facet_tol
double geom_res
MKCoremk

Detailed Description

A class for generating facet-based mesh of geometric surfaces INPUT: one or more ModelEnts representing geometric surfaces MESH TYPE(S): MBEDGE, MBVERTEX, MBTRI OUTPUT: a set of triangles, edges and verticesfor each ModelEnt DEPENDENCIES: meshkit build with iGeom interface.

This class uses the facets generated for the visualization of solid models in typical CAD software to represent a geometric surface as mesh. Upon execution, this class will call for the facet data and store it as part of the ModelEnt's mesh.

Definition at line 37 of file SurfaceFacetMeshReader.hpp.


Constructor & Destructor Documentation

SurfaceFacetMeshReader ( MKCore mk,
const MEntVector ments 
)

Construction function for the Solid CAD Surface Mesher.

Definition at line 22 of file SurfaceFacetMeshReader.cpp.

Decstructor function for the Solid CAD Surface Mesher.

Definition at line 28 of file SurfaceFacetMeshReader.cpp.


Member Function Documentation

static bool can_mesh ( iBase_EntityType  dim) [inline, static]

Function returning whether this scheme can mesh entities of the specified dimension.

Parameters:
dimentity dimension

Definition at line 58 of file SurfaceFacetMeshReader.hpp.

static bool can_mesh ( ModelEnt me) [inline, static]

Function returning whether this scheme can mesh the specified entity.

Used by MeshOpFactory to find scheme for an entity.

Parameters:
meModelEnt being queried
Returns:
If true, this scheme can mesh the specified ModelEnt

Definition at line 67 of file SurfaceFacetMeshReader.hpp.

void execute_this ( ) [virtual]

Pure virtual, derived class must define.

Implements GraphNode.

Definition at line 77 of file SurfaceFacetMeshReader.cpp.

void facet ( ModelEnt surf) [private]

Function to for creating triangles and adding them to the ModelEntity's meshset.

Parameters:
surfModelEntity for the surface to be meshed.

Definition at line 93 of file SurfaceFacetMeshReader.cpp.

virtual const moab::EntityType* mesh_types_arr ( ) const [inline, virtual]

Return the mesh entity types operated on by this scheme.

Returns:
array terminated with moab::MBMAXTYPE

Implements MeshOp.

Definition at line 79 of file SurfaceFacetMeshReader.hpp.

static const char* name ( ) [inline, static]

Get the class name.

Definition at line 71 of file SurfaceFacetMeshReader.hpp.

const moab::EntityType * output_types ( ) [static]

Function that names the output types of this meshing class.

Returns:
array terminated with moab::MBMAXTYPE

Definition at line 19 of file SurfaceFacetMeshReader.cpp.

void set_mesh_params ( double  faceting_tolerance = 0,
double  geom_resabs = 0 
)

Definition at line 186 of file SurfaceFacetMeshReader.cpp.

void setup_this ( ) [virtual]

Pure virtual, derived class must define.

Implements GraphNode.

Definition at line 32 of file SurfaceFacetMeshReader.cpp.

double vtx2vtx_dist ( iGeom::EntityHandle  vtx1,
iMesh::EntityHandle  vtx2 
) [private]

Definition at line 193 of file SurfaceFacetMeshReader.cpp.


Member Data Documentation

double facet_tol [private]

Definition at line 85 of file SurfaceFacetMeshReader.hpp.

double geom_res [private]

Definition at line 86 of file SurfaceFacetMeshReader.hpp.

MKCore* mk [private]

Definition at line 87 of file SurfaceFacetMeshReader.hpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines