Foam::DelaunayMeshTools Namespace Reference

Collection of functions for operating on a Delaunay mesh. More...

Functions

void writeOBJ (const fileName &fName, const List< Foam::point > &points)
 Write list of points to file. More...
 
void writeOBJ (const fileName &fName, const List< Vb > &points)
 Write list of points to file. More...
 
void writeObjMesh (const fileName &fName, const pointField &points, const faceList &faces)
 Write an OBJ mesh consisting of points and faces. More...
 
template<class Triangulation >
void writeOBJ (const fileName &fName, const Triangulation &t, const indexedVertexEnum::vertexType startPointType, const indexedVertexEnum::vertexType endPointType)
 Write Delaunay points in the range between (and including) More...
 
template<class Triangulation >
void writeOBJ (const fileName &fName, const Triangulation &t, const indexedVertexEnum::vertexType pointType)
 Write Delaunay points of type pointType to .obj file. More...
 
template<class Triangulation >
void writeFixedPoints (const fileName &fName, const Triangulation &t)
 Write the fixed Delaunay points to an OBJ file. More...
 
template<class Triangulation >
void writeBoundaryPoints (const fileName &fName, const Triangulation &t)
 Write the boundary Delaunay points to an OBJ file. More...
 
template<class Triangulation >
void writeProcessorInterface (const fileName &fName, const Triangulation &t, const faceList &faces)
 Write the processor interface to an OBJ file. More...
 
template<class Triangulation >
void writeInternalDelaunayVertices (const fileName &instance, const Triangulation &t)
 Write the internal Delaunay vertices of the tessellation as a. More...
 
template<class CellHandle >
void drawDelaunayCell (Ostream &os, const CellHandle &c, label offset=0)
 Draws a tet cell to an output stream. The offset is supplied as the tet. More...
 
template<class Triangulation >
tmp< pointFieldallPoints (const Triangulation &t)
 Extract all points in vertex-index order. More...
 

Detailed Description

Collection of functions for operating on a Delaunay mesh.

Includes:

  • Functions for writing to an OBJ file
  • Functions for extracting fields from the Delaunay triangulation
Source files

Function Documentation

◆ writeOBJ() [1/4]

void writeOBJ ( const fileName fName,
const List< Foam::point > &  points 
)

Write list of points to file.

◆ writeOBJ() [2/4]

void writeOBJ ( const fileName fName,
const List< Vb > &  points 
)

Write list of points to file.

◆ writeObjMesh()

void writeObjMesh ( const fileName fName,
const pointField points,
const faceList faces 
)

Write an OBJ mesh consisting of points and faces.

◆ writeOBJ() [3/4]

void writeOBJ ( const fileName fName,
const Triangulation &  t,
const indexedVertexEnum::vertexType  startPointType,
const indexedVertexEnum::vertexType  endPointType 
)

Write Delaunay points in the range between (and including)

type startPointType and endPointType to an OBJ file

◆ writeOBJ() [4/4]

void writeOBJ ( const fileName fName,
const Triangulation &  t,
const indexedVertexEnum::vertexType  pointType 
)

Write Delaunay points of type pointType to .obj file.

◆ writeFixedPoints()

void writeFixedPoints ( const fileName fName,
const Triangulation &  t 
)

Write the fixed Delaunay points to an OBJ file.

◆ writeBoundaryPoints()

void writeBoundaryPoints ( const fileName fName,
const Triangulation &  t 
)

Write the boundary Delaunay points to an OBJ file.

◆ writeProcessorInterface()

void writeProcessorInterface ( const fileName fName,
const Triangulation &  t,
const faceList faces 
)

Write the processor interface to an OBJ file.

◆ writeInternalDelaunayVertices()

void writeInternalDelaunayVertices ( const fileName instance,
const Triangulation &  t 
)

Write the internal Delaunay vertices of the tessellation as a.

pointField that may be used to restart the meshing process

◆ drawDelaunayCell()

void drawDelaunayCell ( Ostream os,
const CellHandle &  c,
label  offset = 0 
)

Draws a tet cell to an output stream. The offset is supplied as the tet.

number to be drawn.

◆ allPoints()

tmp< pointField > allPoints ( const Triangulation &  t)

Extract all points in vertex-index order.