unit-tests/testFacetRecovery.cpp
/*! \fn size_t TestRecoveryConstraintFacets::numberOfRecoveryConstrainedFacets()
 *  \brief Computes number of recovered constraint facets.
 *  \return Number of recovered constraint facets.
 */
\fn size_t TestRecoveryConstraintFacets::numberOfRecoveryConstrainedFacets()
\brief Computes number of recovered constraint facets.
\return Number of recovered constraint facets.
\ fn size_t TestRecoveryConstraintFacets :: numberOfRecoveryConstrainedFacets () \ brief Computes number of recovered constraint facets . \ return Number of recovered constraint facets .
size_t TestRecoverConstraintFacets::numberOfRecoveredConstraintFacets()
{
	size_t nConstraintFacetsRecovered = 0;
	for (LCC::One_dart_per_cell_range<2>::iterator plcfIter = plc.one_dart_per_cell<2>().begin(), plcfIterEnd = plc.one_dart_per_cell<2>().end(); plcfIter != plcfIterEnd; plcfIter++)
	{
		for (LCC::One_dart_per_cell_range<2>::iterator cdtMeshfIter = cdtMesh.one_dart_per_cell<2>().begin(), cdtMeshfIterEnd = cdtMesh.one_dart_per_cell<2>().end(); cdtMeshfIter != cdtMeshfIterEnd; cdtMeshfIter++)
			if (areFacetsSameGeometry(plcfIter, plc, cdtMeshfIter, cdtMesh)) 
				nConstraintFacetsRecovered++;
	}	
	return nConstraintFacetsRecovered;
}
size_t TestRecoverConstraintFacets :: numberOfRecoveredConstraintFacets ( ) { size_t nConstraintFacetsRecovered = 0 ; for ( LCC :: One_dart_per_cell_range < 2 > :: iterator plcfIter = plc . one_dart_per_cell < 2 > ( ) . begin ( ) , plcfIterEnd = plc . one_dart_per_cell < 2 > ( ) . end ( ) ; plcfIter != plcfIterEnd ; plcfIter ++ ) { for ( LCC :: One_dart_per_cell_range < 2 > :: iterator cdtMeshfIter = cdtMesh . one_dart_per_cell < 2 > ( ) . begin ( ) , cdtMeshfIterEnd = cdtMesh . one_dart_per_cell < 2 > ( ) . end ( ) ; cdtMeshfIter != cdtMeshfIterEnd ; cdtMeshfIter ++ ) if ( areFacetsSameGeometry ( plcfIter , plc , cdtMeshfIter , cdtMesh ) ) nConstraintFacetsRecovered ++ ; } return nConstraintFacetsRecovered ; }
\fn size_t TestRecoveryConstraintFacets::numberOfRecoveryConstrainedFacets()
  \brief Computes number of recovered constraint facets.
\ fn size_t TestRecoveryConstraintFacets :: numberOfRecoveryConstrainedFacets () \ brief Computes number of recovered constraint facets .
// search for this facet in original mesh