unit-tests/testLocalDegeneracyRemoval.cpp
/*! \fn bool TestLocalDegeneracyRemoval :: runTest()
 *  \brief Tests local degeneracy removal code.
 *  \return True if there are no local degeneracies left after _removal_ operation else returns False.
 */
\fn bool TestLocalDegeneracyRemoval :: runTest()
\brief Tests local degeneracy removal code.
\return True if there are no local degeneracies left after _removal_ operation else returns False.
\ fn bool TestLocalDegeneracyRemoval :: runTest () \ brief Tests local degeneracy removal code . \ return True if there are no local degeneracies left after _removal_ operation else returns False .
bool TestLocalDegeneracyRemoval :: runTest()
{
	readPLCInput();
	computeDelaunayTetrahedralization(-1);
	recoverConstraintSegments();
	size_t nLocalDegeneraciesBeforeRemoval = 0, nLocalDegeneraciesAfterRemoval = 0;
	nLocalDegeneraciesBeforeRemoval = locateLocalDegeneracies();
	removeLocalDegeneracies(); 
	nLocalDegeneraciesAfterRemoval = locateLocalDegeneracies();	
	cout << "Number of local Degeneracies before removal: " << nLocalDegeneraciesBeforeRemoval << endl;
	cout << "Number of local Degeneracies after removal: " << nLocalDegeneraciesAfterRemoval << endl;
	if (nLocalDegeneraciesAfterRemoval != 0)
		return false;
	else 
		return true;	
}
bool TestLocalDegeneracyRemoval :: runTest ( ) { readPLCInput ( ) ; computeDelaunayTetrahedralization ( -1 ) ; recoverConstraintSegments ( ) ; size_t nLocalDegeneraciesBeforeRemoval = 0 , nLocalDegeneraciesAfterRemoval = 0 ; nLocalDegeneraciesBeforeRemoval = locateLocalDegeneracies ( ) ; removeLocalDegeneracies ( ) ; nLocalDegeneraciesAfterRemoval = locateLocalDegeneracies ( ) ; cout << " " << nLocalDegeneraciesBeforeRemoval << endl ; cout << " " << nLocalDegeneraciesAfterRemoval << endl ; if ( nLocalDegeneraciesAfterRemoval != 0 ) return false ; else return true ; }
\fn bool TestLocalDegeneracyRemoval :: runTest()
  \brief Tests local degeneracy removal code.
\ fn bool TestLocalDegeneracyRemoval :: runTest () \ brief Tests local degeneracy removal code .
// Now we can check for correctness of local degeneracy removal // plc is modified