mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-11 06:03:07 +05:00
Mantis issue 0020974: Extra edges appear in the result of a partition and can't be removed.
This commit is contained in:
parent
40622a5d1a
commit
138e896f44
@ -291,9 +291,15 @@ TopoDS_Shape BlockFix_UnionEdges::Perform(const TopoDS_Shape& Shape,
|
||||
TopoDS_Shape aResult = myContext->Apply(Shape);
|
||||
|
||||
// processing each solid
|
||||
TopExp_Explorer exps;
|
||||
for(exps.Init(Shape, TopAbs_SOLID); exps.More(); exps.Next()) {
|
||||
TopoDS_Solid aSolid = TopoDS::Solid(exps.Current());
|
||||
TopAbs_ShapeEnum aType = TopAbs_SOLID;
|
||||
TopExp_Explorer exps (Shape, aType);
|
||||
if (!exps.More()) {
|
||||
aType = TopAbs_SHELL;
|
||||
exps.Init(Shape, aType);
|
||||
}
|
||||
for (; exps.More(); exps.Next()) {
|
||||
//TopoDS_Solid aSolid = TopoDS::Solid(exps.Current());
|
||||
TopoDS_Shape aSolid = exps.Current();
|
||||
|
||||
TopTools_IndexedMapOfShape ChangedFaces;
|
||||
|
||||
|
@ -252,6 +252,7 @@ void RepairGUI_RemoveExtraEdgesDlg::enterEvent(QEvent* e)
|
||||
void RepairGUI_RemoveExtraEdgesDlg::activateSelection()
|
||||
{
|
||||
TColStd_MapOfInteger aTypes;
|
||||
aTypes.Add( GEOM_SHELL );
|
||||
aTypes.Add( GEOM_SOLID );
|
||||
aTypes.Add( GEOM_COMPOUND );
|
||||
globalSelection( aTypes );
|
||||
|
Loading…
Reference in New Issue
Block a user