Changed for 0019296 (Evaluation).

This commit is contained in:
skl 2009-09-16 06:13:07 +00:00
parent 7c72475a3a
commit 6de0067382

View File

@ -332,10 +332,17 @@ bool StdMeshers_MEFISTO_2D::Evaluate(SMESH_Mesh & aMesh,
P1 = P2; P1 = P2;
} }
} }
if ( NbSeg > 0 ) if(NbSeg<1) {
aLen = aLen/NbSeg; // middle length std::vector<int> aResVec(SMDSEntity_Last);
else for(int i=SMDSEntity_Node; i<SMDSEntity_Last; i++) aResVec[i] = 0;
aLen = Precision::Infinite(); SMESH_subMesh * sm = aMesh.GetSubMesh(aShape);
aResMap.insert(std::make_pair(sm,aResVec));
SMESH_ComputeErrorPtr& smError = sm->GetComputeError();
smError.reset( new SMESH_ComputeError(COMPERR_ALGO_FAILED,
"Submesh can not be evaluated",this));
return false;
}
aLen = aLen/NbSeg; // middle length
_edgeLength = Precision::Infinite(); _edgeLength = Precision::Infinite();
double tmpLength = Min( _edgeLength, aLen ); double tmpLength = Min( _edgeLength, aLen );