deleted some function used to see aspect ratio media tetrahedrons collapsed

This commit is contained in:
Nico Pietroni 2004-07-08 08:39:56 +00:00
parent 4676d87413
commit cc537cd0dc
1 changed files with 0 additions and 36 deletions

View File

@ -749,42 +749,6 @@ bool CheckPreconditions(PosType pos,CoordType NewP)
//return false;
}
/////Modify pos and alfa to obtain the collapse that minimize the error in terms of volume loss
//void MinVolume(PosType &pos,ScalarType &alfa,int nsteps)
//{
// bool ext_v0=(pos.T()->V(Tetra::VofE(pos.E(),0)))->IsB();
// bool ext_v1=(pos.T()->V(Tetra::VofE(pos.E(),1)))->IsB();
//
// if ((ext_v0)&&(!ext_v1))
// alfa=1.f;
// else
// if ((!ext_v0)&&(ext_v1))
// alfa=0.f;
// else
// if ((!ext_v0)&&(!ext_v1))
// alfa=0.5f;
// else
// if ((ext_v0)&&(ext_v1))//both are external vertex
// {
// /*alfa=1.f;*/
// ScalarType step=1.f/(nsteps-1);
// ScalarType best_error=1000000.f;
// ScalarType Vol_Original=_VolumeUnion();
// for (int i=0;i<nsteps;i++)
// {
// ScalarType alfatemp=step*((double)i);
// //the error is the absolute value of difference of volumes
// ScalarType error=fabs(Vol_Original-_VolumeSimulateCollapse(pos,alfa));
// if(error<best_error)
// {
// alfa=alfatemp;
// best_error=error;
// }
// }
// }
//}
///return the sum of volumes of the union of stars on vertices (the original volume of tetrahedrons)
ScalarType VolumeOriginal()
{