22483: EDF 2772 SMESH: Define several 3D viscous layer hypotheses on the same Geometry

This commit is contained in:
eap 2014-08-27 15:18:30 +04:00
parent 0e584bba7f
commit 86f0b5ec0b
2 changed files with 10 additions and 2 deletions

View File

@ -932,8 +932,8 @@ bool NETGENPlugin_Mesher::FillNgMesh(netgen::OCCGeometry& occgeom,
while ( fID < faceNgID ) // geomFace is already in occgeom.fmap, add a copy
fID = occgeom.fmap.Add( BRepBuilderAPI_Copy( geomFace, /*copyGeom=*/false ));
// Problem with the second order in a quadrangular mesh remains.
// 1) All quadrangles geberated by NETGEN are moved to an inexistent face
// by FillSMesh() (find AddFaceDescriptor)
// 1) All quadrangles generated by NETGEN are moved to an inexistent face
// by FillSMesh() (find "AddFaceDescriptor")
// 2) Temporary triangles generated by StdMeshers_QuadToTriaAdaptor
// are on faces where quadrangles were.
// Due to these 2 points, wrong geom faces are used while conversion to qudratic

View File

@ -173,6 +173,14 @@ bool NETGENPlugin_NETGEN_2D_ONLY::CheckHypothesis (SMESH_Mesh& aMesh,
else
aStatus = HYP_OK;
if ( aStatus == HYP_OK && _hypParameters && _hypQuadranglePreference )
{
aStatus = HYP_INCOMPAT_HYPS;
return error(SMESH_Comment("\"") << _hypQuadranglePreference->GetName()
<< "\" and \"" << _hypParameters->GetName()
<< "\" are incompatible hypotheses");
}
return ( aStatus == HYP_OK );
}