EGSnrc C++ class library
Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
|
A container for raw unstructured tetrahedral mesh data. More...
#include <egs_mesh.h>
Classes | |
struct | Medium |
A medium. The medium name must match an EGSnrc medium name. More... | |
struct | Node |
A 3D point. Units are cm . More... | |
struct | Tetrahedron |
A tetrahedral mesh element. More... | |
Public Member Functions | |
EGS_MeshSpec (std::vector< Tetrahedron > elements, std::vector< Node > nodes, std::vector< Medium > media) | |
EGS_MeshSpec (const EGS_MeshSpec &)=delete | |
EGS_MeshSpec & | operator= (const EGS_MeshSpec &)=delete |
EGS_MeshSpec (EGS_MeshSpec &&)=default | |
EGS_MeshSpec & | operator= (EGS_MeshSpec &&)=default |
void | checkValid () const |
void | scale (EGS_Float factor) |
Multiply all node coordinates by a constant factor. | |
Public Attributes | |
std::vector < EGS_MeshSpec::Tetrahedron > | elements |
Unique mesh elements. | |
std::vector< EGS_MeshSpec::Node > | nodes |
Unique nodes. | |
std::vector< EGS_MeshSpec::Medium > | media |
Unique medium information. | |
A container for raw unstructured tetrahedral mesh data.
Definition at line 94 of file egs_mesh.h.
void EGS_MeshSpec::checkValid | ( | ) | const |
Throws std::runtime_error if an EGS_Mesh can't be properly initialized using this mesh data.
Definition at line 81 of file egs_mesh.cpp.
References elements, and nodes.
Referenced by EGS_Mesh::EGS_Mesh().