mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-11 00:33:08 +05:00
0020982: EDF 1547 SMESH: Creation of non-conformal quadratic pyramids
fix a just computed quadratic mesh by bending iternal links near concave boundary
This commit is contained in:
parent
339549e601
commit
919135795d
@ -25,14 +25,18 @@
|
|||||||
// Author : Paul RASCLE, EDF
|
// Author : Paul RASCLE, EDF
|
||||||
// Module : SMESH
|
// Module : SMESH
|
||||||
//
|
//
|
||||||
#define CHRONODEF
|
|
||||||
|
//#define CHRONODEF
|
||||||
|
|
||||||
#include "SMESH_Gen.hxx"
|
#include "SMESH_Gen.hxx"
|
||||||
#include "SMESH_subMesh.hxx"
|
|
||||||
#include "SMESH_HypoFilter.hxx"
|
#include "SMDS_Mesh.hxx"
|
||||||
#include "SMESHDS_Document.hxx"
|
|
||||||
#include "SMDS_MeshElement.hxx"
|
#include "SMDS_MeshElement.hxx"
|
||||||
#include "SMDS_MeshNode.hxx"
|
#include "SMDS_MeshNode.hxx"
|
||||||
#include "SMDS_Mesh.hxx"
|
#include "SMESHDS_Document.hxx"
|
||||||
|
#include "SMESH_HypoFilter.hxx"
|
||||||
|
#include "SMESH_MesherHelper.hxx"
|
||||||
|
#include "SMESH_subMesh.hxx"
|
||||||
|
|
||||||
#include "utilities.h"
|
#include "utilities.h"
|
||||||
#include "OpUtil.hxx"
|
#include "OpUtil.hxx"
|
||||||
@ -348,6 +352,15 @@ bool SMESH_Gen::Compute(SMESH_Mesh & aMesh,
|
|||||||
MESSAGE("Number of cell objects " << SMDS_MeshCell::nbCells);
|
MESSAGE("Number of cell objects " << SMDS_MeshCell::nbCells);
|
||||||
//myMesh->dumpGrid();
|
//myMesh->dumpGrid();
|
||||||
//aMesh.GetMeshDS()->Modified();
|
//aMesh.GetMeshDS()->Modified();
|
||||||
|
|
||||||
|
// fix quadratic mesh by bending iternal links near concave boundary
|
||||||
|
if ( aShape.IsSame( aMesh.GetShapeToMesh() ) &&
|
||||||
|
!aShapesId ) // not preview
|
||||||
|
{
|
||||||
|
SMESH_MesherHelper aHelper( aMesh );
|
||||||
|
if ( aHelper.IsQuadraticMesh() != SMESH_MesherHelper::LINEAR )
|
||||||
|
aHelper.FixQuadraticElements();
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user