mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-05-30 14:27:49 +05:00
Do not glue empty compounds
This commit is contained in:
parent
a46ed42b20
commit
ba82372a27
@ -169,7 +169,11 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(TFunction_Logbook& log) const
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// As GlueFaces has been improved to keep all kind of shapes
|
// As GlueFaces has been improved to keep all kind of shapes
|
||||||
aShape = GEOMImpl_GlueDriver::GlueFaces(C, Precision::Confusion(), Standard_True);
|
TopExp_Explorer anExp (C, TopAbs_VERTEX);
|
||||||
|
if (anExp.More())
|
||||||
|
aShape = GEOMImpl_GlueDriver::GlueFaces(C, Precision::Confusion(), Standard_True);
|
||||||
|
else
|
||||||
|
aShape = C;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -236,7 +240,11 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(TFunction_Logbook& log) const
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// As GlueFaces has been improved to keep all kind of shapes
|
// As GlueFaces has been improved to keep all kind of shapes
|
||||||
aShape = GEOMImpl_GlueDriver::GlueFaces(C, Precision::Confusion(), Standard_True);
|
TopExp_Explorer anExp (C, TopAbs_VERTEX);
|
||||||
|
if (anExp.More())
|
||||||
|
aShape = GEOMImpl_GlueDriver::GlueFaces(C, Precision::Confusion(), Standard_True);
|
||||||
|
else
|
||||||
|
aShape = C;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -383,7 +391,11 @@ Standard_Integer GEOMImpl_BooleanDriver::Execute(TFunction_Logbook& log) const
|
|||||||
//aShape = C;
|
//aShape = C;
|
||||||
|
|
||||||
// As GlueFaces has been improved to keep all kind of shapes
|
// As GlueFaces has been improved to keep all kind of shapes
|
||||||
aShape = GEOMImpl_GlueDriver::GlueFaces(C, Precision::Confusion(), Standard_True);
|
TopExp_Explorer anExp (C, TopAbs_VERTEX);
|
||||||
|
if (anExp.More())
|
||||||
|
aShape = GEOMImpl_GlueDriver::GlueFaces(C, Precision::Confusion(), Standard_True);
|
||||||
|
else
|
||||||
|
aShape = C;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user