mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +03:00
0026644: ShapeUpgrade_UnifySameDomain - strange behavior
Modification to keep connectivity for non--manifold shapes during operation ShapeUpgrade_UnifySameDomain
This commit is contained in:
parent
f6749d511e
commit
ccf61b1b85
@ -786,18 +786,14 @@ void ShapeUpgrade_UnifySameDomain::Initialize(const TopoDS_Shape& aShape,
|
|||||||
|
|
||||||
void ShapeUpgrade_UnifySameDomain::UnifyFaces()
|
void ShapeUpgrade_UnifySameDomain::UnifyFaces()
|
||||||
{
|
{
|
||||||
//Handle(ShapeBuild_ReShape) myContext = new ShapeBuild_ReShape;
|
// creating map of edge faces
|
||||||
TopoDS_Shape aResShape = myContext->Apply(myShape);
|
TopTools_IndexedDataMapOfShapeListOfShape aMapEdgeFaces;
|
||||||
|
TopExp::MapShapesAndAncestors(myShape, TopAbs_EDGE, TopAbs_FACE, aMapEdgeFaces);
|
||||||
// processing each shell
|
// processing each shell
|
||||||
TopExp_Explorer exps;
|
TopExp_Explorer exps;
|
||||||
for (exps.Init(myShape, TopAbs_SHELL); exps.More(); exps.Next()) {
|
for (exps.Init(myShape, TopAbs_SHELL); exps.More(); exps.Next()) {
|
||||||
TopoDS_Shell aShell = TopoDS::Shell(exps.Current());
|
TopoDS_Shell aShell = TopoDS::Shell(exps.Current());
|
||||||
|
|
||||||
// creating map of edge faces
|
|
||||||
TopTools_IndexedDataMapOfShapeListOfShape aMapEdgeFaces;
|
|
||||||
TopExp::MapShapesAndAncestors(aShell, TopAbs_EDGE, TopAbs_FACE, aMapEdgeFaces);
|
|
||||||
|
|
||||||
// map of processed shapes
|
// map of processed shapes
|
||||||
TopTools_MapOfShape aProcessed;
|
TopTools_MapOfShape aProcessed;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user