Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dump Python in the High Level Parameterized Geometry API (issue #1648)
[modules/shaper.git]
/
src
/
GeomAlgoAPI
/
GeomAlgoAPI_Partition.cpp
diff --git
a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp
b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp
index 7034f9d4c853e4c52170b13c6a191e4c27545a5e..06849b9f17eb42f2debdbb3f7297a674e339b9a8 100644
(file)
--- a/
src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp
+++ b/
src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp
@@
-65,25
+65,16
@@
void GeomAlgoAPI_Partition::build(const ListOfShape& theObjects,
}
TopoDS_Shape aResult = anOperation->Shape();
}
TopoDS_Shape aResult = anOperation->Shape();
- if(aResult.ShapeType() == TopAbs_COMPOUND) {
- aResult = GeomAlgoAPI_DFLoader::refineResult(aResult);
- }
if(aResult.ShapeType() == TopAbs_COMPOUND) {
std::shared_ptr<GeomAPI_Shape> aGeomShape(new GeomAPI_Shape);
aGeomShape->setImpl(new TopoDS_Shape(aResult));
if(aResult.ShapeType() == TopAbs_COMPOUND) {
std::shared_ptr<GeomAPI_Shape> aGeomShape(new GeomAPI_Shape);
aGeomShape->setImpl(new TopoDS_Shape(aResult));
- ListOfShape aCompSolids, aFreeSolids;
- aGeomShape = GeomAlgoAPI_ShapeTools::combineShapes(aGeomShape,
- GeomAPI_Shape::COMPSOLID,
- aCompSolids,
- aFreeSolids);
- aResult = aGeomShape->impl<TopoDS_Shape>();
+ aResult = GeomAlgoAPI_ShapeTools::groupSharedTopology(aGeomShape)->impl<TopoDS_Shape>();
}
// Setting result.
if(aResult.IsNull()) {
return;
}
}
// Setting result.
if(aResult.IsNull()) {
return;
}
- aResult = GeomAlgoAPI_DFLoader::refineResult(aResult);
std::shared_ptr<GeomAPI_Shape> aShape(new GeomAPI_Shape());
aShape->setImpl(new TopoDS_Shape(aResult));
this->setShape(aShape);
std::shared_ptr<GeomAPI_Shape> aShape(new GeomAPI_Shape());
aShape->setImpl(new TopoDS_Shape(aResult));
this->setShape(aShape);