mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 15:10:33 +05:00
0020832: EDF 1359 SMESH : Automatic meshing of boundary layers
- SMESHGUI_EXPORT GEOM::GEOM_Object_var GetShapeOnMeshOrSubMesh( _PTR(SObject) ); + SMESHGUI_EXPORT GEOM::GEOM_Object_var GetShapeOnMeshOrSubMesh( _PTR(SObject), bool* isMesh=0 );
This commit is contained in:
parent
02201a772d
commit
db8973dc5c
@ -52,7 +52,8 @@ namespace SMESH
|
|||||||
return aGEOMGen;
|
return aGEOMGen;
|
||||||
}
|
}
|
||||||
|
|
||||||
GEOM::GEOM_Object_var GetShapeOnMeshOrSubMesh(_PTR(SObject) theMeshOrSubmesh)
|
GEOM::GEOM_Object_var GetShapeOnMeshOrSubMesh(_PTR(SObject) theMeshOrSubmesh,
|
||||||
|
bool* isMesh)
|
||||||
{
|
{
|
||||||
SALOMEDS_SObject* aMeshOrSubmesh = _CAST(SObject,theMeshOrSubmesh);
|
SALOMEDS_SObject* aMeshOrSubmesh = _CAST(SObject,theMeshOrSubmesh);
|
||||||
if(aMeshOrSubmesh) {
|
if(aMeshOrSubmesh) {
|
||||||
@ -61,13 +62,19 @@ namespace SMESH
|
|||||||
SMESH::SMESH_Mesh_var aMesh =
|
SMESH::SMESH_Mesh_var aMesh =
|
||||||
SObjectToInterface<SMESH::SMESH_Mesh>( theMeshOrSubmesh );
|
SObjectToInterface<SMESH::SMESH_Mesh>( theMeshOrSubmesh );
|
||||||
if ( !aMesh->_is_nil() )
|
if ( !aMesh->_is_nil() )
|
||||||
|
{
|
||||||
|
if ( isMesh ) *isMesh = true;
|
||||||
return aMesh->GetShapeToMesh();
|
return aMesh->GetShapeToMesh();
|
||||||
|
}
|
||||||
SMESH::SMESH_subMesh_var aSubmesh =
|
SMESH::SMESH_subMesh_var aSubmesh =
|
||||||
SObjectToInterface<SMESH::SMESH_subMesh>( theMeshOrSubmesh );
|
SObjectToInterface<SMESH::SMESH_subMesh>( theMeshOrSubmesh );
|
||||||
if ( !aSubmesh->_is_nil() )
|
if ( !aSubmesh->_is_nil() )
|
||||||
|
{
|
||||||
|
if ( isMesh ) *isMesh = false;
|
||||||
return aSubmesh->GetSubShape();
|
return aSubmesh->GetSubShape();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return GEOM::GEOM_Object::_nil();
|
return GEOM::GEOM_Object::_nil();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ namespace SMESH
|
|||||||
{
|
{
|
||||||
SMESHGUI_EXPORT GEOM::GEOM_Gen_var GetGEOMGen();
|
SMESHGUI_EXPORT GEOM::GEOM_Gen_var GetGEOMGen();
|
||||||
|
|
||||||
SMESHGUI_EXPORT GEOM::GEOM_Object_var GetShapeOnMeshOrSubMesh( _PTR(SObject) );
|
SMESHGUI_EXPORT GEOM::GEOM_Object_var GetShapeOnMeshOrSubMesh( _PTR(SObject), bool* isMesh=0 );
|
||||||
|
|
||||||
SMESHGUI_EXPORT GEOM::GEOM_Object_ptr GetGeom( _PTR(SObject) );
|
SMESHGUI_EXPORT GEOM::GEOM_Object_ptr GetGeom( _PTR(SObject) );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user