mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 15:27:26 +05:00
0022297: BR_new_bop3/Occdev_3f4689a163 => Faces are missing after an extrusion
Fix ConvertToQuadratic(): do not convert twice quadratic volumes
This commit is contained in:
parent
c2a497190b
commit
e97c496f7d
@ -8446,11 +8446,20 @@ void SMESH_MeshEditor::ConvertToQuadratic(const bool theForce3d, const bool theT
|
|||||||
if ( !volume ) continue;
|
if ( !volume ) continue;
|
||||||
|
|
||||||
const SMDSAbs_EntityType type = volume->GetEntityType();
|
const SMDSAbs_EntityType type = volume->GetEntityType();
|
||||||
if (( theToBiQuad && type == SMDSEntity_TriQuad_Hexa ) ||
|
if ( volume->IsQuadratic() )
|
||||||
( !theToBiQuad && type == SMDSEntity_Quad_Hexa ))
|
|
||||||
{
|
{
|
||||||
aHelper.AddTLinks( static_cast< const SMDS_MeshVolume* >( volume ));
|
bool alreadyOK;
|
||||||
continue;
|
switch ( type )
|
||||||
|
{
|
||||||
|
case SMDSEntity_Quad_Hexa: alreadyOK = !theToBiQuad; break;
|
||||||
|
case SMDSEntity_TriQuad_Hexa: alreadyOK = theToBiQuad; break;
|
||||||
|
default: alreadyOK = true;
|
||||||
|
}
|
||||||
|
if ( alreadyOK )
|
||||||
|
{
|
||||||
|
aHelper.AddTLinks( static_cast< const SMDS_MeshVolume* >( volume ));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
const int id = volume->GetID();
|
const int id = volume->GetID();
|
||||||
vector<const SMDS_MeshNode *> nodes (volume->begin_nodes(), volume->end_nodes());
|
vector<const SMDS_MeshNode *> nodes (volume->begin_nodes(), volume->end_nodes());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user