mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-18 13:00:32 +05:00
0020082: EDF 869 GEOM : Edges Orientation indicator/reverse
This commit is contained in:
parent
3e09f90deb
commit
067947492f
@ -1085,6 +1085,7 @@ void SMESHGUI_MeshOp::createHypothesis(const int theDim,
|
||||
if ( aMeshEntry == "" && aGeomEntry == "" ) {
|
||||
_PTR(SObject) pObj = studyDS()->FindObjectID( anObjEntry.toLatin1().data() );
|
||||
GEOM::GEOM_Object_var aGeomVar = SMESH::GetShapeOnMeshOrSubMesh( pObj );
|
||||
if ( !aGeomVar->_is_nil() )
|
||||
aGeomEntry = aGeomVar->GetStudyEntry();
|
||||
}
|
||||
|
||||
@ -1099,6 +1100,7 @@ void SMESHGUI_MeshOp::createHypothesis(const int theDim,
|
||||
if ( !aMeshVar->_is_nil() ) {
|
||||
_PTR(SObject) aMeshSO = SMESH::FindSObject( aMeshVar );
|
||||
GEOM::GEOM_Object_var aGeomVar = SMESH::GetShapeOnMeshOrSubMesh( aMeshSO );
|
||||
if ( !aGeomVar->_is_nil() )
|
||||
aMeshEntry = aGeomVar->GetStudyEntry();
|
||||
}
|
||||
}
|
||||
@ -1206,6 +1208,7 @@ void SMESHGUI_MeshOp::onEditHyp( const int theHypType, const int theIndex )
|
||||
if ( aMeshEntry == "" && aGeomEntry == "" ) {
|
||||
_PTR(SObject) pObj = studyDS()->FindObjectID( anObjEntry.toLatin1().data() );
|
||||
GEOM::GEOM_Object_var aGeomVar = SMESH::GetShapeOnMeshOrSubMesh( pObj );
|
||||
if ( !aGeomVar->_is_nil() )
|
||||
aGeomEntry = aGeomVar->GetStudyEntry();
|
||||
}
|
||||
|
||||
@ -1220,6 +1223,7 @@ void SMESHGUI_MeshOp::onEditHyp( const int theHypType, const int theIndex )
|
||||
if ( !aMeshVar->_is_nil() ) {
|
||||
_PTR(SObject) aMeshSO = SMESH::FindSObject( aMeshVar );
|
||||
GEOM::GEOM_Object_var aGeomVar = SMESH::GetShapeOnMeshOrSubMesh( aMeshSO );
|
||||
if ( !aGeomVar->_is_nil() )
|
||||
aMeshEntry = aGeomVar->GetStudyEntry();
|
||||
}
|
||||
}
|
||||
|
@ -475,8 +475,10 @@ const char* StdMeshersGUI_SubShapeSelectorWdg::GetMainShapeEntry()
|
||||
//=================================================================================
|
||||
QList<int> StdMeshersGUI_SubShapeSelectorWdg::GetCorrectedListOfIDs( bool fromSubshapeToMainshape )
|
||||
{
|
||||
if ( myMainShape.IsNull() || myGeomShape.IsNull() )
|
||||
if ( ( myMainShape.IsNull() || myGeomShape.IsNull() ) && fromSubshapeToMainshape )
|
||||
return myListOfIDs;
|
||||
else if ( ( myMainShape.IsNull() || myGeomShape.IsNull() ) && !fromSubshapeToMainshape )
|
||||
return mySelectedIDs;
|
||||
|
||||
QList<int> aList;
|
||||
TopTools_IndexedMapOfShape aGeomMap;
|
||||
|
Loading…
Reference in New Issue
Block a user