mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
0022216: EDF 2613 SMESH: Projection 1D with multi-dimensional algo (Netgen 1D-2D or BLSurf...)
int GetHypotheses(const TopoDS_Shape & aSubShape, const SMESH_HypoFilter& aFilter, list <const SMESHDS_Hypothesis * >& aHypList, const bool andAncestors, + list< TopoDS_Shape > * assignedTo=0) const
This commit is contained in:
parent
fce384ca68
commit
6b2c537fcd
@ -813,7 +813,8 @@ const SMESH_Hypothesis * SMESH_Mesh::GetHypothesis(const TopoDS_Shape & aSubS
|
|||||||
int SMESH_Mesh::GetHypotheses(const TopoDS_Shape & aSubShape,
|
int SMESH_Mesh::GetHypotheses(const TopoDS_Shape & aSubShape,
|
||||||
const SMESH_HypoFilter& aFilter,
|
const SMESH_HypoFilter& aFilter,
|
||||||
list <const SMESHDS_Hypothesis * >& aHypList,
|
list <const SMESHDS_Hypothesis * >& aHypList,
|
||||||
const bool andAncestors) const
|
const bool andAncestors,
|
||||||
|
list< TopoDS_Shape > * assignedTo/*=0*/) const
|
||||||
{
|
{
|
||||||
set<string> hypTypes; // to exclude same type hypos from the result list
|
set<string> hypTypes; // to exclude same type hypos from the result list
|
||||||
int nbHyps = 0;
|
int nbHyps = 0;
|
||||||
@ -842,6 +843,7 @@ int SMESH_Mesh::GetHypotheses(const TopoDS_Shape & aSubShape,
|
|||||||
nbHyps++;
|
nbHyps++;
|
||||||
if ( !cSMESH_Hyp(*hyp)->IsAuxiliary() )
|
if ( !cSMESH_Hyp(*hyp)->IsAuxiliary() )
|
||||||
mainHypFound = true;
|
mainHypFound = true;
|
||||||
|
if ( assignedTo ) assignedTo->push_back( aSubShape );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -868,6 +870,7 @@ int SMESH_Mesh::GetHypotheses(const TopoDS_Shape & aSubShape,
|
|||||||
nbHyps++;
|
nbHyps++;
|
||||||
if ( !cSMESH_Hyp(*hyp)->IsAuxiliary() )
|
if ( !cSMESH_Hyp(*hyp)->IsAuxiliary() )
|
||||||
mainHypFound = true;
|
mainHypFound = true;
|
||||||
|
if ( assignedTo ) assignedTo->push_back( curSh );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,8 @@ public:
|
|||||||
int GetHypotheses(const TopoDS_Shape & aSubShape,
|
int GetHypotheses(const TopoDS_Shape & aSubShape,
|
||||||
const SMESH_HypoFilter& aFilter,
|
const SMESH_HypoFilter& aFilter,
|
||||||
std::list< const SMESHDS_Hypothesis * >& aHypList,
|
std::list< const SMESHDS_Hypothesis * >& aHypList,
|
||||||
const bool andAncestors) const;
|
const bool andAncestors,
|
||||||
|
std::list< TopoDS_Shape > * assignedTo=0) const;
|
||||||
|
|
||||||
const std::list<SMESHDS_Command*> & GetLog() throw(SALOME_Exception);
|
const std::list<SMESHDS_Command*> & GetLog() throw(SALOME_Exception);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user