MeshCore::MeshOrientationCollector Class Reference

This class searches for inconsistent orientation of neighboured facets. More...

#include <Evaluation.h>

Public Member Functions

 MeshOrientationCollector (std::vector< FacetIndex > &aulIndices, std::vector< FacetIndex > &aulComplement)
 
bool Visit (const MeshFacet &, const MeshFacet &, FacetIndex, unsigned long)
 Returns always true and collects the indices with wrong orientation. More...
 
- Public Member Functions inherited from MeshCore::MeshOrientationVisitor
bool HasNonUnifomOrientedFacets () const
 
 MeshOrientationVisitor ()
 
bool Visit (const MeshFacet &, const MeshFacet &, FacetIndex, unsigned long)
 Returns false after the first inconsistence is found, true otherwise. More...
 
- Public Member Functions inherited from MeshCore::MeshFacetVisitor
virtual bool AllowVisit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, FacetIndex ulFInd, unsigned long ulLevel, unsigned short neighbourIndex)
 Test before a facet will be flagged as VISIT, return false means: go on with visiting the facets but not this one and set not the VISIT flag. More...
 
 MeshFacetVisitor ()
 Construction. More...
 
virtual bool Visit (const MeshFacet &rclFacet, const MeshFacet &rclFrom, FacetIndex ulFInd, unsigned long ulLevel)=0
 Needs to be implemented in sub-classes. More...
 
virtual ~MeshFacetVisitor ()
 Denstruction. More...
 

Detailed Description

This class searches for inconsistent orientation of neighboured facets.

Note: The 'TMP0' flag for facets must be reset before using this class.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ MeshOrientationCollector()

MeshOrientationCollector::MeshOrientationCollector ( std::vector< FacetIndex > &  aulIndices,
std::vector< FacetIndex > &  aulComplement 
)

Member Function Documentation

◆ Visit()

bool MeshOrientationCollector::Visit ( const MeshFacet rclFacet,
const MeshFacet rclFrom,
FacetIndex  ulFInd,
unsigned long  ulLevel 
)
virtual

Returns always true and collects the indices with wrong orientation.

Reimplemented from MeshCore::MeshOrientationVisitor.

References MeshCore::MeshFacet::HasSameOrientation(), MeshCore::MeshFacet::IsFlag(), MeshCore::MeshFacet::SetFlag(), and MeshCore::MeshFacet::TMP0.


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