mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 08:50: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;
|
||||
}
|
||||
|
||||
GEOM::GEOM_Object_var GetShapeOnMeshOrSubMesh(_PTR(SObject) theMeshOrSubmesh)
|
||||
GEOM::GEOM_Object_var GetShapeOnMeshOrSubMesh(_PTR(SObject) theMeshOrSubmesh,
|
||||
bool* isMesh)
|
||||
{
|
||||
SALOMEDS_SObject* aMeshOrSubmesh = _CAST(SObject,theMeshOrSubmesh);
|
||||
if(aMeshOrSubmesh) {
|
||||
@ -61,11 +62,17 @@ namespace SMESH
|
||||
SMESH::SMESH_Mesh_var aMesh =
|
||||
SObjectToInterface<SMESH::SMESH_Mesh>( theMeshOrSubmesh );
|
||||
if ( !aMesh->_is_nil() )
|
||||
{
|
||||
if ( isMesh ) *isMesh = true;
|
||||
return aMesh->GetShapeToMesh();
|
||||
}
|
||||
SMESH::SMESH_subMesh_var aSubmesh =
|
||||
SObjectToInterface<SMESH::SMESH_subMesh>( theMeshOrSubmesh );
|
||||
if ( !aSubmesh->_is_nil() )
|
||||
{
|
||||
if ( isMesh ) *isMesh = false;
|
||||
return aSubmesh->GetSubShape();
|
||||
}
|
||||
}
|
||||
}
|
||||
return GEOM::GEOM_Object::_nil();
|
||||
|
@ -43,7 +43,7 @@ namespace SMESH
|
||||
{
|
||||
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) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user