mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Fix bug with 2D algorithms, applied to shells (PAOUK).
This commit is contained in:
parent
ffab2d99a0
commit
5ebb213563
@ -482,9 +482,18 @@ bool SMESH_subMesh::IsApplicableHypotesis(const SMESH_Hypothesis* theHypothesis,
|
|||||||
switch ( theShapeType ) {
|
switch ( theShapeType ) {
|
||||||
case TopAbs_EDGE:
|
case TopAbs_EDGE:
|
||||||
case TopAbs_FACE:
|
case TopAbs_FACE:
|
||||||
case TopAbs_SHELL:
|
|
||||||
case TopAbs_SOLID:
|
case TopAbs_SOLID:
|
||||||
return SMESH_Gen::GetShapeDim( theShapeType ) == theHypothesis->GetDim();
|
return SMESH_Gen::GetShapeDim( theShapeType ) == theHypothesis->GetDim();
|
||||||
|
|
||||||
|
case TopAbs_SHELL:
|
||||||
|
// Special case for algorithms, building 2D mesh on a whole shell.
|
||||||
|
// Before this fix there was a problem after restoring from study,
|
||||||
|
// because in that case algorithm is assigned before hypothesis
|
||||||
|
// (on shell in problem case) and hypothesis is checked on faces
|
||||||
|
// (because it is 2D), where we have NO_ALGO state.
|
||||||
|
// Now 2D hypothesis is also applicable to shells.
|
||||||
|
return (theHypothesis->GetDim() == 2 || theHypothesis->GetDim() == 3);
|
||||||
|
|
||||||
// case TopAbs_WIRE:
|
// case TopAbs_WIRE:
|
||||||
// case TopAbs_COMPSOLID:
|
// case TopAbs_COMPSOLID:
|
||||||
// case TopAbs_COMPOUND:
|
// case TopAbs_COMPOUND:
|
||||||
|
Loading…
Reference in New Issue
Block a user