![]() |
NLMech
0.1.0
|
A class to check if the node is in interior or exterior. More...
#include <interiorFlags.h>


Public Member Functions | |
| DataInterior (inp::InteriorFlagsDeck *deck, const std::vector< util::Point3 > *nodes, std::pair< std::vector< double >, std::vector< double >> bbox, std::vector< std::pair< std::string, std::vector< double >>> no_fail_regions) | |
| Constructor. More... | |
| bool | getInteriorFlag (const size_t &i, const util::Point3 &x) override |
| Returns true if node is in interior, false otherwise. More... | |
| void | print (int nt=0, int lvl=0) const |
| Prints the information about the instance of the object. More... | |
| std::string | printStr (int nt=0, int lvl=0) const |
| Returns the string containing information about the instance of the object. More... | |
Public Member Functions inherited from geometry::BaseInterior | |
| BaseInterior (inp::InteriorFlagsDeck *deck, std::pair< std::vector< double >, std::vector< double >> bbox, std::vector< std::pair< std::string, std::vector< double >>> no_fail_regions) | |
| Constructor. More... | |
| void | print (int nt=0, int lvl=0) const |
| Prints the information about the instance of the object. More... | |
| std::string | printStr (int nt=0, int lvl=0) const |
| Returns the string containing information about the instance of the object. More... | |
A class to check if the node is in interior or exterior.
This class stores the interior flags of all nodes so that the flags are not computed every time it is needed.
| geometry::DataInterior::DataInterior | ( | inp::InteriorFlagsDeck * | deck, |
| const std::vector< util::Point3 > * | nodes, | ||
| std::pair< std::vector< double >, std::vector< double >> | bbox, | ||
| std::vector< std::pair< std::string, std::vector< double >>> | no_fail_regions | ||
| ) |
Constructor.
| deck | Input deck which contains user-specified information |
| nodes | Pointer to the list of nodal coordinates |
| bbox | Bounding box to determine the location of nodes relative to the boundary |
| no_fail_regions | No fail regions other than the boundary of domain |

|
overridevirtual |
Returns true if node is in interior, false otherwise.
This function simply looks up at the stored bit corresponding to the node and returns true and false depending on whether bit is 0 or 1.
| i | Nodal id |
| x | Nodal coordinate |
Reimplemented from geometry::BaseInterior.
|
inline |
Prints the information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |

| std::string geometry::DataInterior::printStr | ( | int | nt = 0, |
| int | lvl = 0 |
||
| ) | const |
Returns the string containing information about the instance of the object.
| nt | Number of tabs to append before each line of string |
| lvl | Level of information sought (higher level means more information) |
Referenced by print().

