- // Glue coincident faces and edges (with Partition algorithm).
- //NMTAlgo_Splitter1 PS;
- //PS.AddShape(aCompound);
- //PS.Compute();
- //PS.SetRemoveWebs(Standard_False);
- // PS.Build(aCompound.ShapeType());
- //PS.Build(TopAbs_SOLID);
- //aShape = PS.Shape();
-
- GEOMAlgo_Gluer aGluer;
- aGluer.SetShape(aCompound);
- aGluer.SetCheckGeometry(Standard_True);
- aGluer.Perform();
- aShape = aGluer.Result();
-
-
- } else {
+ // Glue coincident faces and edges
+ aShape = GEOMImpl_GlueDriver::GlueFaces(aCompound, Precision::Confusion(), Standard_True);
+ //GEOMAlgo_Gluer aGluer;
+ //aGluer.SetShape(aCompound);
+ //aGluer.SetCheckGeometry(Standard_True);
+ //aGluer.Perform();
+ //aShape = aGluer.Result();
+ }
+ else {