Workspace 6.21.5
Namespaces | Functions
meshmodelutils.cpp File Reference
#include "meshmodelutils.h"
#include <QtAlgorithms>
#include "meshelementsinterface.h"
#include "meshmodelinterface.h"
#include "meshnodesinterface.h"
Include dependency graph for meshmodelutils.cpp:

Namespaces

namespace  CSIRO
 Top level namespace for all Workspace code.
 
namespace  CSIRO::Mesh
 Mesh model data structures.
 

Functions

bool calculateElementCentroid (const MeshModelInterface &model, const ElementType::Type &type, const ElementHandle &element, Vector3d &result)
 
bool calculateElementNormal (const ElementType::Type &type, const QVector< Vector3d > &points, Vector3d &result)
 
bool calculateElementNormal (const MeshModelInterface &model, const ElementType::Type &type, const ElementHandle &element, Vector3d &result)
 
bool calculateNodeNormal (const MeshModelInterface &model, const NodeHandle &node, Vector3d &result)
 
bool calculateQuadrilateralNormal (const Vector3d &pos0, const Vector3d &pos1, const Vector3d &pos2, const Vector3d &pos3, Vector3d &result)
 
double calculateTriangleArea (const Vector3d &pos0, const Vector3d &pos1, const Vector3d &pos2)
 
bool calculateTriangleNormal (const Vector3d &pos0, const Vector3d &pos1, const Vector3d &pos2, Vector3d &result)
 
ElementHandle getAttachedHexahedronFace (const MeshModelInterface &model, const ElementHandle &hexahedraElementHandle, int face, bool *handleFound, NodeHandleList *nodesOfAttachedHexaFace)
 
ElementHandle getAttachedTetrahedronFace (const MeshModelInterface &model, const ElementHandle &tetraElementHandle, int face, bool *handleFound, NodeHandleList *nodesOfAttachedTetraFace)
 
NodeHandleList getHexahedronFace (int face, const NodeHandleList &nodes)
 
NodeHandle getOpposingTetrahedronNode (int face, const NodeHandleList &nodes)
 
NodeHandleList getTetrahedronFace (int face, const NodeHandleList &nodes)
 
NodeHandle nextNodeHandle (const NodeHandleList &nodes, const NodeHandle &node)
 
NodeHandle prevNodeHandle (const NodeHandleList &nodes, const NodeHandle &node)