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:
eap 2011-01-18 12:14:09 +00:00
parent 02201a772d
commit db8973dc5c
2 changed files with 9 additions and 2 deletions

View File

@ -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();

View File

@ -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) );