+ //modified by NIZNHY-PKV Fri Jul 12 07:22:58 2013f
+ //
+ // 0.
+ // The compound myShape may contain equal solids
+ // (itz.brep for e.g.). The block is to refine
+ // such data if it is necessary. The shape to treat
+ // will be aShape (not myShape).
+ //
+ aShape=myShape;
+ //
+ aIt1.Initialize(myShape);
+ for (aNbS=0; aIt1.More(); aIt1.Next(), ++aNbS) {
+ const TopoDS_Shape& aS=aIt1.Value();
+ aMFence.Add(aS);
+ }
+ //
+ aNbR=aMFence.Extent();
+ if (aNbS!=aNbR) {
+ TopTools_MapIteratorOfMapOfShape aItMS;
+ //
+ GEOMAlgo_Tools3D::MakeContainer(TopAbs_COMPOUND, aShape);
+ //
+ aItMS.Initialize(aMFence);
+ for (; aItMS.More(); aItMS.Next()) {
+ const TopoDS_Shape& aS=aItMS.Key();
+ aBB.Add(aShape, aS);
+ }
+ }
+ //modified by NIZNHY-PKV Fri Jul 12 07:23:02 2013t
+ //