cee::ug::CuttingPlaneData Class Reference

Returns raw node coordinates and result values for a cutting plane. More...

Public Member Functions

 CuttingPlaneData ()
 Constructs an empty object. More...
 
void allTriangles (std::vector< unsigned int > *triangles) const
 Gets all triangle data as an array of vertices. More...
 
void allVertices (std::vector< Vec3d > *vertices) const
 Gets all vertices as an array. More...
 
void allScalarResults (std::vector< double > *scalarResult) const
 Gets all scalar result values as a double array. More...
 
void allVectorResults (std::vector< Vec3d > *vectorResult) const
 Gets all vector result values as an array of vectors. More...
 
void allTrianglesSourceElementIndices (std::vector< size_t > *elementIndices) const
 Gets an array with the index of the source element for each triangle returned by allTriangles() More...
 
void allTrianglesSourcePartIndices (std::vector< size_t > *partIndices) const
 Gets an array with the index of the source part for each triangle returned by allTriangles() More...
 
void allLines (std::vector< unsigned int > *lines) const
 Gets all line data as an array of vertices. More...
 
void allLinesSourceElementIndices (std::vector< size_t > *elementIndices) const
 Gets an array with the index of the source element for each line returned by allLines() More...
 
void allLinesSourcePartIndices (std::vector< size_t > *partIndices) const
 Gets an array with the index of the source part for each line returned by allLines() More...
 
void allOriginalTriangles (std::vector< unsigned int > *triangles, std::vector< Vec3d > *vertices)
 Gets the original triangles (indices and vertices) More...
 

Detailed Description

Returns raw node coordinates and result values for a cutting plane.

Get the cutting plane data using CuttingPlane::data().

See also
CuttingPlane

Constructor & Destructor Documentation

cee::ug::CuttingPlaneData::CuttingPlaneData ( )

Constructs an empty object.

Member Function Documentation

void cee::ug::CuttingPlaneData::allLines ( std::vector< unsigned int > *  triangles) const

Gets all line data as an array of vertices.

Each line is described by the start and end index into the vertices and results arrays

void cee::ug::CuttingPlaneData::allLinesSourceElementIndices ( std::vector< size_t > *  elementIndices) const

Gets an array with the index of the source element for each line returned by allLines()

If using the CuttingPlane::data() method, get the part index for each triangle with the allLinesSourcePartIndices() method.

void cee::ug::CuttingPlaneData::allLinesSourcePartIndices ( std::vector< size_t > *  partIndices) const

Gets an array with the index of the source part for each line returned by allLines()

Note: If provided by CuttingPlane::partData(), this array will be empty, as all lines will come from the specified part

void cee::ug::CuttingPlaneData::allOriginalTriangles ( std::vector< unsigned int > *  triangles,
std::vector< Vec3d > *  vertices 
)

Gets the original triangles (indices and vertices)

Original means that these are the computed triangles that have welded nodes and comprises the surface, and is not split due to PER_ELEMENT or PER_ELEMENT_NODE mapped results or collapsed triangles etc.

void cee::ug::CuttingPlaneData::allScalarResults ( std::vector< double > *  scalarResult) const

Gets all scalar result values as a double array.

void cee::ug::CuttingPlaneData::allTriangles ( std::vector< unsigned int > *  triangles) const

Gets all triangle data as an array of vertices.

void cee::ug::CuttingPlaneData::allTrianglesSourceElementIndices ( std::vector< size_t > *  elementIndices) const

Gets an array with the index of the source element for each triangle returned by allTriangles()

If using the CuttingPlane::data() method, get the part index for each triangle with the allTrianglesSourcePartIndices() method.

void cee::ug::CuttingPlaneData::allTrianglesSourcePartIndices ( std::vector< size_t > *  partIndices) const

Gets an array with the index of the source part for each triangle returned by allTriangles()

Note: If provided by CuttingPlane::partData(), this array will be empty, as all triangles will come from the specified part

void cee::ug::CuttingPlaneData::allVectorResults ( std::vector< Vec3d > *  vectorResult) const

Gets all vector result values as an array of vectors.

void cee::ug::CuttingPlaneData::allVertices ( std::vector< Vec3d > *  vertices) const

Gets all vertices as an array.