22368: EDF SMESH: Pattern mapping to assign new nodes to sub-shapes

+  mesh.GetSubMesh( shape )->SetIsAlwaysComputed( true );
This commit is contained in:
eap 2013-12-26 15:12:09 +00:00
parent dc681ba632
commit 0d4d960d4f

View File

@ -25,6 +25,9 @@
// //
#include "StdMeshers_UseExisting_1D2D.hxx" #include "StdMeshers_UseExisting_1D2D.hxx"
#include "SMESH_Mesh.hxx"
#include "SMESH_subMesh.hxx"
//======================================================================= //=======================================================================
//function : StdMeshers_UseExisting_1D //function : StdMeshers_UseExisting_1D
//purpose : //purpose :
@ -56,10 +59,11 @@ bool StdMeshers_UseExisting_1D::CheckHypothesis(SMESH_Mesh& ,
//purpose : //purpose :
//======================================================================= //=======================================================================
bool StdMeshers_UseExisting_1D::Compute(SMESH_Mesh&, const TopoDS_Shape&) bool StdMeshers_UseExisting_1D::Compute(SMESH_Mesh& mesh, const TopoDS_Shape& edge)
{ {
// This algorithm exists to allow mesh generation by mesh // This algorithm exists to allow mesh generation by mesh
// edition functions in TUI mode // edition functions in TUI mode
mesh.GetSubMesh( edge )->SetIsAlwaysComputed( true );
return true; return true;
} }
@ -110,10 +114,11 @@ bool StdMeshers_UseExisting_2D::CheckHypothesis(SMESH_Mesh& ,
//purpose : //purpose :
//======================================================================= //=======================================================================
bool StdMeshers_UseExisting_2D::Compute(SMESH_Mesh&, const TopoDS_Shape&) bool StdMeshers_UseExisting_2D::Compute(SMESH_Mesh& mesh, const TopoDS_Shape& face)
{ {
// This algorithm exists to allow mesh generation by mesh edition // This algorithm exists to allow mesh generation by mesh edition
// functions in TUI mode // functions in TUI mode
mesh.GetSubMesh( face )->SetIsAlwaysComputed( true );
return true; return true;
} }