minor change
This commit is contained in:
parent
f39abee419
commit
4a9ffe08f7
@ -622,13 +622,10 @@ bool NETGENPlugin_Mesher::Compute()
|
|||||||
// length from edges
|
// length from edges
|
||||||
double length = 0;
|
double length = 0;
|
||||||
TopTools_MapOfShape tmpMap;
|
TopTools_MapOfShape tmpMap;
|
||||||
for ( TopExp_Explorer exp( _shape, TopAbs_EDGE ); exp.More(); exp.Next() ) {
|
for ( TopExp_Explorer exp( _shape, TopAbs_EDGE ); exp.More(); exp.Next() )
|
||||||
if( tmpMap.Contains(exp.Current()) )
|
if( tmpMap.Add(exp.Current()) )
|
||||||
continue;
|
|
||||||
length += SMESH_Algo::EdgeLength( TopoDS::Edge( exp.Current() ));
|
length += SMESH_Algo::EdgeLength( TopoDS::Edge( exp.Current() ));
|
||||||
tmpMap.Add(exp.Current());
|
|
||||||
}
|
|
||||||
tmpMap.Clear();
|
|
||||||
if ( ngMesh->GetNSeg() ) {
|
if ( ngMesh->GetNSeg() ) {
|
||||||
// we have to multiply length by 2 since for each TopoDS_Edge there
|
// we have to multiply length by 2 since for each TopoDS_Edge there
|
||||||
// are double set of NETGEN edges or, in other words, we have to
|
// are double set of NETGEN edges or, in other words, we have to
|
||||||
|
Loading…
Reference in New Issue
Block a user