22582: EDF 8036 SMESH: ConvertToQuadratic fails with theForce3d off

Fix force3DOutOfBoundary()
This commit is contained in:
eap 2014-05-21 15:35:24 +04:00
parent c85da25c70
commit 2c50a35a86

View File

@ -242,8 +242,6 @@ void SMESH_MesherHelper::SetSubShape(const TopoDS_Shape& aSh)
for ( TopExp_Explorer eF( aSh, TopAbs_FACE ); eF.More(); eF.Next() ) for ( TopExp_Explorer eF( aSh, TopAbs_FACE ); eF.More(); eF.Next() )
{ {
const TopoDS_Face& face = TopoDS::Face( eF.Current() ); const TopoDS_Face& face = TopoDS::Face( eF.Current() );
// TopLoc_Location loc;
// Handle(Geom_Surface) surface = BRep_Tool::Surface( face, loc );
// if ( surface->IsUPeriodic() || surface->IsVPeriodic() || // if ( surface->IsUPeriodic() || surface->IsVPeriodic() ||
// surface->IsUClosed() || surface->IsVClosed() ) // surface->IsUClosed() || surface->IsVClosed() )
@ -4214,6 +4212,8 @@ namespace { // Structures used by FixQuadraticElements()
nInSolid = n; nInSolid = n;
else if ( subIDs.count( n->getshapeId() )) else if ( subIDs.count( n->getshapeId() ))
nOnFace.push_back( n ); nOnFace.push_back( n );
else
nInSolid = n;
} }
if ( !nInSolid || nOnFace.size() != nbN - 1 ) if ( !nInSolid || nOnFace.size() != nbN - 1 )
continue; continue;