PPL Logo

TriangleSurfaceMesh Class Reference

#include <triSurfMesh.h>

Collaboration diagram for TriangleSurfaceMesh:

Collaboration graph
[legend]

Public Types

enum  { nodePer = 3 }

Public Member Functions

 TriangleSurfaceMesh ()
 Create a new empty mesh.
 TriangleSurfaceMesh (int nt, int np)
 Create a new mesh with this many triangles and points.
virtual ~TriangleSurfaceMesh ()
virtual void allocate (int nt, int np)
 Set size of mesh to be nt triangles and np points. Throws away previous mesh.
int getTriangles (void) const
 Return the number of triangles in the mesh.
intgetTriangle (int t)
 Return the t'th triangle's 0-based node indices.
const intgetTriangle (int t) const
intgetTriangleConn (void)
const intgetTriangleConn (void) const
const double getArea (int t) const
int getPoints (void) const
 Return the number of points (vertices, nodes) in the mesh.
CkVector3dgetPoint (int p)
 Return the p'th vertex (0..getPoints()-1).
const CkVector3dgetPoint (int p) const
CkVector3dgetPointArray (void)
const CkVector3dgetPointArray (void) const
void cleanup ()
int addTriangle (const conn_t &c)
 Simple mesh modification. The new number of the added object is returned.
int addPoint (const CkVector3d &pt)
void writeToTecplot (char *fname)

Data Fields

int nonGhostTri
int nonGhostPt

Private Attributes

std::vector< conn_ttris
 Connectivity.
std::vector< CkVector3dpts
 nPts 3d node locations.

Data Structures

class  conn_t
 Connectivity: 0-based node indices around our triangle. More...

Detailed Description

Definition at line 12 of file triSurfMesh.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
nodePer 

Definition at line 14 of file triSurfMesh.h.


Constructor & Destructor Documentation

TriangleSurfaceMesh::TriangleSurfaceMesh (  )  [inline]

Create a new empty mesh.

Definition at line 26 of file triSurfMesh.h.

TriangleSurfaceMesh::TriangleSurfaceMesh ( int  nt,
int  np 
) [inline]

Create a new mesh with this many triangles and points.

Definition at line 28 of file triSurfMesh.h.

References allocate().

Here is the call graph for this function:

virtual TriangleSurfaceMesh::~TriangleSurfaceMesh (  )  [inline, virtual]

Definition at line 29 of file triSurfMesh.h.


Member Function Documentation

virtual void TriangleSurfaceMesh::allocate ( int  nt,
int  np 
) [inline, virtual]

Set size of mesh to be nt triangles and np points. Throws away previous mesh.

Definition at line 32 of file triSurfMesh.h.

References pts, and tris.

Referenced by TriangleSurfaceMesh().

Here is the caller graph for this function:

int TriangleSurfaceMesh::getTriangles ( void   )  const [inline]

Return the number of triangles in the mesh.

Definition at line 38 of file triSurfMesh.h.

References tris.

Referenced by parallelSurfaceTransfer_c::parallelSurfaceTransfer_c(), and parallelSurfaceTransfer_c::transfer().

Here is the caller graph for this function:

int* TriangleSurfaceMesh::getTriangle ( int  t  )  [inline]

Return the t'th triangle's 0-based node indices.

Definition at line 40 of file triSurfMesh.h.

References tris.

Referenced by getTriangleBox(), getTriangleConn(), parallelSurfaceTransfer_c::transferNodeValues(), and Triangle3DElement::Triangle3DElement().

Here is the caller graph for this function:

const int* TriangleSurfaceMesh::getTriangle ( int  t  )  const [inline]

Definition at line 41 of file triSurfMesh.h.

References tris.

int* TriangleSurfaceMesh::getTriangleConn ( void   )  [inline]

Definition at line 42 of file triSurfMesh.h.

References getTriangle().

Here is the call graph for this function:

const int* TriangleSurfaceMesh::getTriangleConn ( void   )  const [inline]

Definition at line 43 of file triSurfMesh.h.

References getTriangle().

Here is the call graph for this function:

const double TriangleSurfaceMesh::getArea ( int  t  )  const [inline]

Definition at line 45 of file triSurfMesh.h.

References PUP::d, pts, and tris.

Referenced by parallelSurfaceTransfer_c::transfer().

Here is the caller graph for this function:

int TriangleSurfaceMesh::getPoints ( void   )  const [inline]

Return the number of points (vertices, nodes) in the mesh.

Definition at line 75 of file triSurfMesh.h.

References pts.

CkVector3d& TriangleSurfaceMesh::getPoint ( int  p  )  [inline]

Return the p'th vertex (0..getPoints()-1).

Definition at line 77 of file triSurfMesh.h.

References pts.

Referenced by Triangle3DElement::getNodeLocation(), getTriangleBox(), and parallelSurfaceTransfer_c::transferNodeValues().

Here is the caller graph for this function:

const CkVector3d& TriangleSurfaceMesh::getPoint ( int  p  )  const [inline]

Definition at line 78 of file triSurfMesh.h.

References pts.

CkVector3d* TriangleSurfaceMesh::getPointArray ( void   ) 

const CkVector3d* TriangleSurfaceMesh::getPointArray ( void   )  const

void TriangleSurfaceMesh::cleanup (  )  [inline]

Definition at line 82 of file triSurfMesh.h.

References pts, stats::swap(), and tris.

Here is the call graph for this function:

int TriangleSurfaceMesh::addTriangle ( const conn_t c  )  [inline]

Simple mesh modification. The new number of the added object is returned.

Definition at line 90 of file triSurfMesh.h.

References nonGhostTri, and tris.

int TriangleSurfaceMesh::addPoint ( const CkVector3d pt  )  [inline]

Definition at line 91 of file triSurfMesh.h.

References nonGhostPt, and pts.

void TriangleSurfaceMesh::writeToTecplot ( char *  fname  )  [inline]

Definition at line 94 of file triSurfMesh.h.

References file, n, pts, and tris.


Field Documentation

Definition at line 93 of file triSurfMesh.h.

Referenced by addTriangle().

Definition at line 93 of file triSurfMesh.h.

Referenced by addPoint().

std::vector<conn_t> TriangleSurfaceMesh::tris [private]

Connectivity.

Definition at line 117 of file triSurfMesh.h.

Referenced by addTriangle(), allocate(), cleanup(), getArea(), getTriangle(), getTriangles(), and writeToTecplot().

std::vector<CkVector3d> TriangleSurfaceMesh::pts [private]

nPts 3d node locations.

Definition at line 118 of file triSurfMesh.h.

Referenced by addPoint(), allocate(), cleanup(), getArea(), getPoint(), getPoints(), and writeToTecplot().


The documentation for this class was generated from the following file:

Generated on Mon Sep 21 08:31:31 2020 for Charm++ by  doxygen 1.5.5