#include <triSurfMesh.h>
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. | |
int * | getTriangle (int t) |
Return the t'th triangle's 0-based node indices. | |
const int * | getTriangle (int t) const |
int * | getTriangleConn (void) |
const int * | getTriangleConn (void) const |
const double | getArea (int t) const |
int | getPoints (void) const |
Return the number of points (vertices, nodes) in the mesh. | |
CkVector3d & | getPoint (int p) |
Return the p'th vertex (0..getPoints()-1). | |
const CkVector3d & | getPoint (int p) const |
CkVector3d * | getPointArray (void) |
const CkVector3d * | getPointArray (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_t > | tris |
Connectivity. | |
std::vector< CkVector3d > | pts |
nPts 3d node locations. | |
Data Structures | |
class | conn_t |
Connectivity: 0-based node indices around our triangle. More... |
Definition at line 12 of file triSurfMesh.h.
anonymous enum |
TriangleSurfaceMesh::TriangleSurfaceMesh | ( | ) | [inline] |
Create a new mesh with this many triangles and points.
Definition at line 28 of file triSurfMesh.h.
References allocate().
virtual TriangleSurfaceMesh::~TriangleSurfaceMesh | ( | ) | [inline, virtual] |
Definition at line 29 of file triSurfMesh.h.
Set size of mesh to be nt triangles and np points. Throws away previous mesh.
Definition at line 32 of file triSurfMesh.h.
Referenced by TriangleSurfaceMesh().
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().
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().
int* TriangleSurfaceMesh::getTriangleConn | ( | void | ) | [inline] |
Definition at line 42 of file triSurfMesh.h.
References getTriangle().
const int* TriangleSurfaceMesh::getTriangleConn | ( | void | ) | const [inline] |
Definition at line 43 of file triSurfMesh.h.
References getTriangle().
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().
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().
const CkVector3d& TriangleSurfaceMesh::getPoint | ( | int | p | ) | const [inline] |
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.
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] |
void TriangleSurfaceMesh::writeToTecplot | ( | char * | fname | ) | [inline] |
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().