-// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2024 CEA, EDF
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
#include <Events_InfoMessage.h>
#include <GeomAPI_Shape.h>
-#include <GeomAlgoAPI_CompoundBuilder.h>
+#include <GeomAPI_IndexedMapOfShape.h>
#include <TopoDS_Shape.hxx>
aTypeName = "shape";
break;
}
- int aId = GeomAlgoAPI_CompoundBuilder::id(aContext, aSubShape);
+ GeomAPI_IndexedMapOfShape aSubShapesMap (aContext);
+ int aId = aSubShapesMap.FindIndexEqualLocations(aSubShape);
aName += QString("/%1_%2").arg(aTypeName).arg(aId);
}
}