mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-26 00:45:36 +05:00
Fix error on attempt to assign a hypothesis.
This commit is contained in:
parent
2d4013ab7a
commit
2884e2221b
@ -112,6 +112,10 @@ void SMESHDS_Mesh::ShapeToMesh(const TopoDS_Shape & S)
|
|||||||
bool SMESHDS_Mesh::AddHypothesis(const TopoDS_Shape & SS,
|
bool SMESHDS_Mesh::AddHypothesis(const TopoDS_Shape & SS,
|
||||||
const SMESHDS_Hypothesis * H)
|
const SMESHDS_Hypothesis * H)
|
||||||
{
|
{
|
||||||
|
if (!myShapeToHypothesis.IsBound(SS.Oriented(TopAbs_FORWARD))) {
|
||||||
|
list<const SMESHDS_Hypothesis *> aList;
|
||||||
|
myShapeToHypothesis.Bind(SS.Oriented(TopAbs_FORWARD), aList);
|
||||||
|
}
|
||||||
list<const SMESHDS_Hypothesis *>& alist =
|
list<const SMESHDS_Hypothesis *>& alist =
|
||||||
myShapeToHypothesis(SS.Oriented(TopAbs_FORWARD)); // ignore orientation of SS
|
myShapeToHypothesis(SS.Oriented(TopAbs_FORWARD)); // ignore orientation of SS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user