EGSnrc C++ class library  Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
Classes | Public Member Functions | Public Attributes | List of all members
EGS_MeshSpec Class Reference

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_MeshSpecoperator= (const EGS_MeshSpec &)=delete
 
 EGS_MeshSpec (EGS_MeshSpec &&)=default
 
EGS_MeshSpecoperator= (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::Nodenodes
 Unique nodes.
 
std::vector< EGS_MeshSpec::Mediummedia
 Unique medium information.
 

Detailed Description

A container for raw unstructured tetrahedral mesh data.

Definition at line 94 of file egs_mesh.h.

Member Function Documentation

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().


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