//=============================================================================
Handle(GEOM_Object) GEOMImpl_IShapesOperations::MakeEdgeWire
(Handle(GEOM_Object) theWire,
- const Standard_Real theLinearTolerance,
- const Standard_Real theAngularTolerance)
+ const Standard_Real theLinearTolerance,
+ const Standard_Real theAngularTolerance)
{
SetErrorCode(KO);
if ( theAngularTolerance == DEF_ANG_TOL ) {
if ( theLinearTolerance == DEF_LIN_TOL )
GEOM::TPythonDump(aFunction) << anEdge << " = geompy.MakeEdgeWire("
- << theWire << ")";
+ << theWire << ")";
else
GEOM::TPythonDump(aFunction) << anEdge << " = geompy.MakeEdgeWire("
- << theWire << ", " << theLinearTolerance << ")";
+ << theWire << ", " << theLinearTolerance << ")";
}
else {
GEOM::TPythonDump(aFunction) << anEdge << " = geompy.MakeEdgeWire("
- << theWire << ", " << theLinearTolerance << ", "
- << theAngularTolerance << ")";
+ << theWire << ", " << theLinearTolerance << ", "
+ << theAngularTolerance << ")";
}
SetErrorCode(OK);
}
}
}
- } else {
+ }
+ else if ( aShape.ShapeType() != theShapeType ) // issue 0021079, prevent from returning aShape
+ {
TopExp_Explorer exp (aShape, TopAbs_ShapeEnum(theShapeType));
for (; exp.More(); exp.Next())
if (mapShape.Add(exp.Current()))
}
}
}
- } else {
+ } else if ( aShape.ShapeType() != theShapeType ) // issue 0021079, prevent from returning aShape
+ {
TopExp_Explorer exp (aShape, TopAbs_ShapeEnum(theShapeType));
for (; exp.More(); exp.Next())
if (mapShape.Add(exp.Current()))