mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 18:18:34 +05:00
0020611: [CEA] Algo lacking when editing MED meshing
* Generate hexahedrons from 2D skin mesh: + StdMeshers_HexaFromSkin_3D.cxx
This commit is contained in:
parent
039a4f4346
commit
9ed3242565
@ -73,7 +73,8 @@ salomeinclude_HEADERS = \
|
|||||||
StdMeshers_CompositeHexa_3D.hxx \
|
StdMeshers_CompositeHexa_3D.hxx \
|
||||||
StdMeshers_MaxLength.hxx \
|
StdMeshers_MaxLength.hxx \
|
||||||
StdMeshers_QuadrangleParams.hxx \
|
StdMeshers_QuadrangleParams.hxx \
|
||||||
StdMeshers_RadialQuadrangle_1D2D.hxx
|
StdMeshers_RadialQuadrangle_1D2D.hxx \
|
||||||
|
StdMeshers_HexaFromSkin_3D.hxx
|
||||||
|
|
||||||
# Libraries targets
|
# Libraries targets
|
||||||
|
|
||||||
@ -123,7 +124,8 @@ dist_libStdMeshers_la_SOURCES = \
|
|||||||
StdMeshers_CompositeHexa_3D.cxx \
|
StdMeshers_CompositeHexa_3D.cxx \
|
||||||
StdMeshers_MaxLength.cxx \
|
StdMeshers_MaxLength.cxx \
|
||||||
StdMeshers_QuadrangleParams.cxx \
|
StdMeshers_QuadrangleParams.cxx \
|
||||||
StdMeshers_RadialQuadrangle_1D2D.cxx
|
StdMeshers_RadialQuadrangle_1D2D.cxx \
|
||||||
|
StdMeshers_HexaFromSkin_3D.cxx
|
||||||
|
|
||||||
|
|
||||||
# additionnal information to compil and link file
|
# additionnal information to compil and link file
|
||||||
|
1038
src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx
Normal file
1038
src/StdMeshers/StdMeshers_HexaFromSkin_3D.cxx
Normal file
File diff suppressed because it is too large
Load Diff
57
src/StdMeshers/StdMeshers_HexaFromSkin_3D.hxx
Normal file
57
src/StdMeshers/StdMeshers_HexaFromSkin_3D.hxx
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||||
|
//
|
||||||
|
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
|
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
|
//
|
||||||
|
// This library is free software; you can redistribute it and/or
|
||||||
|
// modify it under the terms of the GNU Lesser General Public
|
||||||
|
// License as published by the Free Software Foundation; either
|
||||||
|
// version 2.1 of the License.
|
||||||
|
//
|
||||||
|
// This library is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
// Lesser General Public License for more details.
|
||||||
|
//
|
||||||
|
// You should have received a copy of the GNU Lesser General Public
|
||||||
|
// License along with this library; if not, write to the Free Software
|
||||||
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
//
|
||||||
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
||||||
|
//
|
||||||
|
// File : StdMeshers_HexaFromSkin_3D.hxx
|
||||||
|
// Created : Wed Jan 27 12:23:21 2010
|
||||||
|
// Author : Edward AGAPOV (eap)
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef __StdMeshers_HexaFromSkin_3D_HXX__
|
||||||
|
#define __StdMeshers_HexaFromSkin_3D_HXX__
|
||||||
|
|
||||||
|
#include "SMESH_StdMeshers.hxx"
|
||||||
|
#include "SMESH_3D_Algo.hxx"
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Alorithm generating hexahedral mesh from 2D skin of block
|
||||||
|
*/
|
||||||
|
|
||||||
|
class STDMESHERS_EXPORT StdMeshers_HexaFromSkin_3D : public SMESH_3D_Algo
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
StdMeshers_HexaFromSkin_3D(int hypId, int studyId, SMESH_Gen* gen);
|
||||||
|
virtual ~StdMeshers_HexaFromSkin_3D();
|
||||||
|
|
||||||
|
virtual bool Compute(SMESH_Mesh & aMesh, SMESH_MesherHelper* aHelper);
|
||||||
|
|
||||||
|
virtual bool CheckHypothesis(SMESH_Mesh& aMesh,
|
||||||
|
const TopoDS_Shape& aShape,
|
||||||
|
Hypothesis_Status& aStatus);
|
||||||
|
|
||||||
|
virtual bool Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape);
|
||||||
|
|
||||||
|
virtual bool Evaluate(SMESH_Mesh & aMesh,
|
||||||
|
const TopoDS_Shape & aShape,
|
||||||
|
MapShapeNbElems& aResMap);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -26,8 +26,10 @@
|
|||||||
// Module : SMESH
|
// Module : SMESH
|
||||||
//
|
//
|
||||||
#include "StdMeshers_Hexa_3D.hxx"
|
#include "StdMeshers_Hexa_3D.hxx"
|
||||||
|
|
||||||
#include "StdMeshers_CompositeHexa_3D.hxx"
|
#include "StdMeshers_CompositeHexa_3D.hxx"
|
||||||
#include "StdMeshers_FaceSide.hxx"
|
#include "StdMeshers_FaceSide.hxx"
|
||||||
|
#include "StdMeshers_HexaFromSkin_3D.hxx"
|
||||||
#include "StdMeshers_Penta_3D.hxx"
|
#include "StdMeshers_Penta_3D.hxx"
|
||||||
#include "StdMeshers_Prism_3D.hxx"
|
#include "StdMeshers_Prism_3D.hxx"
|
||||||
#include "StdMeshers_Quadrangle_2D.hxx"
|
#include "StdMeshers_Quadrangle_2D.hxx"
|
||||||
@ -78,6 +80,7 @@ StdMeshers_Hexa_3D::StdMeshers_Hexa_3D(int hypId, int studyId, SMESH_Gen * gen)
|
|||||||
MESSAGE("StdMeshers_Hexa_3D::StdMeshers_Hexa_3D");
|
MESSAGE("StdMeshers_Hexa_3D::StdMeshers_Hexa_3D");
|
||||||
_name = "Hexa_3D";
|
_name = "Hexa_3D";
|
||||||
_shapeType = (1 << TopAbs_SHELL) | (1 << TopAbs_SOLID); // 1 bit /shape type
|
_shapeType = (1 << TopAbs_SHELL) | (1 << TopAbs_SOLID); // 1 bit /shape type
|
||||||
|
_requireShape = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
@ -862,6 +865,23 @@ bool StdMeshers_Hexa_3D::Evaluate(SMESH_Mesh & aMesh,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//================================================================================
|
||||||
|
/*!
|
||||||
|
* \brief Computes hexahedral mesh from 2D mesh of block
|
||||||
|
*/
|
||||||
|
//================================================================================
|
||||||
|
|
||||||
|
bool StdMeshers_Hexa_3D::Compute(SMESH_Mesh & aMesh, SMESH_MesherHelper* aHelper)
|
||||||
|
{
|
||||||
|
static StdMeshers_HexaFromSkin_3D * algo = 0;
|
||||||
|
if ( !algo ) {
|
||||||
|
SMESH_Gen* gen = aMesh.GetGen();
|
||||||
|
algo = new StdMeshers_HexaFromSkin_3D( gen->GetANewId(), 0, gen );
|
||||||
|
}
|
||||||
|
algo->InitComputeError();
|
||||||
|
algo->Compute( aMesh, aHelper );
|
||||||
|
return error( algo->GetComputeError());
|
||||||
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
|
@ -73,9 +73,9 @@ public:
|
|||||||
const TopoDS_Shape& aShape,
|
const TopoDS_Shape& aShape,
|
||||||
SMESH_Hypothesis::Hypothesis_Status& aStatus);
|
SMESH_Hypothesis::Hypothesis_Status& aStatus);
|
||||||
|
|
||||||
virtual bool Compute(SMESH_Mesh& aMesh,
|
virtual bool Compute(SMESH_Mesh& aMesh, const TopoDS_Shape& aShape);
|
||||||
const TopoDS_Shape& aShape)
|
|
||||||
/*throw (SALOME_Exception)*/;
|
virtual bool Compute(SMESH_Mesh & aMesh, SMESH_MesherHelper* aHelper);
|
||||||
|
|
||||||
virtual bool Evaluate(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape,
|
virtual bool Evaluate(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape,
|
||||||
MapShapeNbElems& aResMap);
|
MapShapeNbElems& aResMap);
|
||||||
|
Loading…
Reference in New Issue
Block a user