mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
PAL13473 (Build repetitive mesh):
Take myKind field into account
This commit is contained in:
parent
7e07caff33
commit
e117dee711
@ -176,24 +176,26 @@ GEOM::GEOM_Object_ptr SMESH_NumberFilter::getGeom
|
|||||||
return anObj._retn();
|
return anObj._retn();
|
||||||
|
|
||||||
// Get geom object corresponding to the mesh
|
// Get geom object corresponding to the mesh
|
||||||
_PTR(ChildIterator) anIter = study->NewChildIterator(aSO);
|
if ( myKind == "SMESH" ) {
|
||||||
for (; anIter->More(); anIter->Next()) {
|
_PTR(ChildIterator) anIter = study->NewChildIterator(aSO);
|
||||||
_PTR(SObject) aSO = anIter->Value();
|
for (; anIter->More(); anIter->Next()) {
|
||||||
if (!aSO)
|
_PTR(SObject) aSO = anIter->Value();
|
||||||
continue;
|
if (!aSO)
|
||||||
_PTR(SObject) aRefSO;
|
continue;
|
||||||
_PTR(SObject) anObj;
|
_PTR(SObject) aRefSO;
|
||||||
if (aSO->ReferencedObject(aRefSO))
|
_PTR(SObject) anObj;
|
||||||
anObj = aRefSO;
|
if (aSO->ReferencedObject(aRefSO))
|
||||||
|
anObj = aRefSO;
|
||||||
|
|
||||||
if (!anObj)
|
if (!anObj)
|
||||||
anObj = aSO;
|
anObj = aSO;
|
||||||
|
|
||||||
anObject = _CAST(SObject,anObj)->GetObject();
|
anObject = _CAST(SObject,anObj)->GetObject();
|
||||||
GEOM::GEOM_Object_var aMeshShape = GEOM::GEOM_Object::_narrow(anObject);
|
GEOM::GEOM_Object_var aMeshShape = GEOM::GEOM_Object::_narrow(anObject);
|
||||||
|
|
||||||
if (!aMeshShape->_is_nil())
|
if (!aMeshShape->_is_nil())
|
||||||
return aMeshShape._retn();
|
return aMeshShape._retn();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return GEOM::GEOM_Object::_nil();
|
return GEOM::GEOM_Object::_nil();
|
||||||
|
@ -31,6 +31,8 @@
|
|||||||
#include <SALOMEconfig.h>
|
#include <SALOMEconfig.h>
|
||||||
#include CORBA_SERVER_HEADER(GEOM_Gen)
|
#include CORBA_SERVER_HEADER(GEOM_Gen)
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
class SUIT_DataOwner;
|
class SUIT_DataOwner;
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@ -77,7 +79,7 @@ class SMESH_NumberFilter : public SUIT_SelectionFilter
|
|||||||
GEOM::GEOM_Object_ptr getGeom (const SUIT_DataOwner*, const bool extractReference = true ) const;
|
GEOM::GEOM_Object_ptr getGeom (const SUIT_DataOwner*, const bool extractReference = true ) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
char* myKind;
|
std::string myKind;
|
||||||
TopAbs_ShapeEnum mySubShapeType;
|
TopAbs_ShapeEnum mySubShapeType;
|
||||||
int myNumber;
|
int myNumber;
|
||||||
bool myIsClosedOnly;
|
bool myIsClosedOnly;
|
||||||
|
Loading…
Reference in New Issue
Block a user