G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gsHDomainSliceIter< node, isconst > Class Template Reference

Detailed Description

template<typename node, bool isconst = false>
class gismo::gsHDomainSliceIter< node, isconst >

Iterates over the leaves of an gsHDomain (tree) that intersect with a slice position.

A slice in this context is defined by:

  • The direction index dir which is perpendicular to the slice position
  • A span index pos along direction dir which indicates the position of the "cut"

Public Member Functions

bool good () const
 Returns true iff we are still pointing at a valid leaf.
 
point lowerCorner () const
 The lower corner of the sliced box. Note that m_dir is skipped.
 
void startFrom (node *const root_node)
 The iteration is done in the sub-tree hanging from node root_node.
 
point upperCorner () const
 The upper corner of the sliced box. Note that m_dir is skipped.
 

Private Attributes

unsigned m_index_level
 The level of the box representation.