mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-13 14:27:08 +03:00
Foundation Classes - Move Map's algo part to external file #213
Updated multiple classes to utilize the new NCollection_MapAlgo for union, intersection, and other set operations, improving code structure and maintainability. Deprecated older methods in NCollection_Map in favor of the new algorithmic approaches.
This commit is contained in:
@@ -401,8 +401,8 @@ static void TestMap(QANCollection_MapFunc& theM, Draw_Interpretor& theDI)
|
||||
aM3.Add(2);
|
||||
aM3.Add(3);
|
||||
|
||||
if (!aM1.HasIntersection(aM2) || !aM2.HasIntersection(aM1) ||
|
||||
aM1.HasIntersection(aM3) || aM3.HasIntersection(aM1))
|
||||
if (!NCollection_MapAlgo::HasIntersection(aM1, aM2) || !NCollection_MapAlgo::HasIntersection(aM2, aM1) ||
|
||||
NCollection_MapAlgo::HasIntersection(aM1, aM3) || NCollection_MapAlgo::HasIntersection(aM3, aM1))
|
||||
{
|
||||
theDI << "Error: method 'HasIntersection' failed.";
|
||||
}
|
||||
|
Reference in New Issue
Block a user