MeshKit  1.0
triMeshOp.cpp File Reference

Test the AF2DfltTriangleMeshOp on a variety of surfaces, both flat and curved. More...

#include <cstddef>
#include <iostream>
#include <string>
#include "meshkit/MKCore.hpp"
#include "meshkit/AF2DfltTriangleMeshOp.hpp"
#include "meshkit/SizingFunction.hpp"
#include "meshkit/SizingFunctionVar.hpp"
#include "meshkit/ModelEnt.hpp"
#include "TestUtil.hpp"
Include dependency graph for triMeshOp.cpp:

Go to the source code of this file.

Defines

#define HAVE_FACET

Functions

MEntVector constructMeshOp (std::string geomFile)
void testMesh (std::string geomFile, std::string meshFile, SizingFunction *sfPtr)
void testSquare ()
void testHoleySurf ()
void testSingleHoleSurf ()
void testSingleHoleSurfImprinted ()
void testSquareVarSize ()
void testPieceOfTorus ()
void testSphere ()
void testBrick ()
int main (int argc, char **argv)

Variables

std::string geomExt = ".facet"
MKCoremk = NULL
bool saveMesh = false
std::string meshExt = ""

Detailed Description

Test the AF2DfltTriangleMeshOp on a variety of surfaces, both flat and curved.

Test:

In make check the meshes are not saved, but if this test is run separately, it accepts a command line argument specifying the file extension for the type of meshes that it should save.

Definition in file triMeshOp.cpp.


Define Documentation

#define HAVE_FACET

Definition at line 32 of file triMeshOp.cpp.


Function Documentation

MEntVector constructMeshOp ( std::string  geomFile)

Load a geometry file from the test directory with the specified file name (after appending a file name suffix depending on the geometry engine). Then extract all of the newly loaded two-dimensional geometry entities (surfaces) and create an AF2DfltTriangleMeshOp with those surfaces.

Return an MEntVector containing the new surfaces.

Definition at line 107 of file triMeshOp.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 62 of file triMeshOp.cpp.

void testBrick ( )

Definition at line 289 of file triMeshOp.cpp.

void testHoleySurf ( )

Definition at line 206 of file triMeshOp.cpp.

void testMesh ( std::string  geomFile,
std::string  meshFile,
SizingFunction sfPtr 
)

Load a geometry file from the test directory with the specified file name (after appending a file name suffix depending on the geometry engine). Then mesh all of the newly loaded two-dimensional geometry entities (surfaces) using an AF2DfltTriangleMeshOp.

After meshing is complete, report the number of triangles, save the mesh to a file with the specified mesh file name (after appending a suffix depending on what the user wanted) if requested, and delete the triangles from the mesh.

Definition at line 149 of file triMeshOp.cpp.

void testPieceOfTorus ( )

Definition at line 239 of file triMeshOp.cpp.

Definition at line 212 of file triMeshOp.cpp.

Definition at line 218 of file triMeshOp.cpp.

void testSphere ( )

Definition at line 245 of file triMeshOp.cpp.

void testSquare ( )

Definition at line 195 of file triMeshOp.cpp.

Definition at line 225 of file triMeshOp.cpp.


Variable Documentation

std::string geomExt = ".facet"

Definition at line 31 of file triMeshOp.cpp.

std::string meshExt = ""

Definition at line 60 of file triMeshOp.cpp.

MKCore* mk = NULL

Definition at line 54 of file triMeshOp.cpp.

bool saveMesh = false

Definition at line 59 of file triMeshOp.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines