Mantis issue 0021291: [CEA 480] Bad performance of glue function in 6.3.0

This commit is contained in:
jfa 2011-05-31 11:02:08 +00:00
parent 956f0bc94a
commit 06928fa47e

View File

@ -449,6 +449,7 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueWithWarnings (const TopoDS_Shape& theShape
return aRes; return aRes;
} }
if (theShapeType != TopAbs_FACE) {
// 3. Fill shapes to glue aMSG // 3. Fill shapes to glue aMSG
TopTools_DataMapOfShapeListOfShape aMSG; TopTools_DataMapOfShapeListOfShape aMSG;
const TopTools_DataMapOfShapeListOfShape& aMSD = aGA.ShapesDetected(); const TopTools_DataMapOfShapeListOfShape& aMSD = aGA.ShapesDetected();
@ -464,6 +465,7 @@ TopoDS_Shape GEOMImpl_GlueDriver::GlueWithWarnings (const TopoDS_Shape& theShape
// 4. Set shapes to glue. If the operator is absent, the whole gluing will be done // 4. Set shapes to glue. If the operator is absent, the whole gluing will be done
aGA.SetShapesToGlue(aMSG); aGA.SetShapesToGlue(aMSG);
}
// 5. Gluing // 5. Gluing
aGA.Perform(); aGA.Perform();