mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-29 19:00:35 +05:00
0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
In GetSourceSubMeshes(), fix getting a main sub-mesh of a not loaded mesh
This commit is contained in:
parent
264238f852
commit
f4f14a98e3
@ -268,8 +268,10 @@ std::vector<SMESH_subMesh*>
|
|||||||
StdMeshers_ImportSource1D::GetSourceSubMeshes(const SMESH_Mesh* srcMesh) const
|
StdMeshers_ImportSource1D::GetSourceSubMeshes(const SMESH_Mesh* srcMesh) const
|
||||||
{
|
{
|
||||||
if ( !srcMesh->HasShapeToMesh() )
|
if ( !srcMesh->HasShapeToMesh() )
|
||||||
return vector<SMESH_subMesh*>(1, srcMesh->GetSubMeshContaining(1));
|
{
|
||||||
|
SMESH_Mesh* srcM = const_cast< SMESH_Mesh* >( srcMesh );
|
||||||
|
return vector<SMESH_subMesh*>(1, srcM->GetSubMesh( srcM->GetShapeToMesh()));
|
||||||
|
}
|
||||||
set<int> shapeIDs;
|
set<int> shapeIDs;
|
||||||
const vector<SMESH_Group*>& groups = GetGroups();
|
const vector<SMESH_Group*>& groups = GetGroups();
|
||||||
const SMESHDS_Mesh * srcMeshDS = srcMesh->GetMeshDS();
|
const SMESHDS_Mesh * srcMeshDS = srcMesh->GetMeshDS();
|
||||||
|
Loading…
Reference in New Issue
Block a user