1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-03 14:10:33 +03:00

0030156: Triangles outside of selection volume are selected

The addition of elements to map is put under correct condition that element overlaps with selection volume
This commit is contained in:
asl
2018-09-24 11:00:18 +03:00
parent 79de462e9e
commit 05a5b0a37c

View File

@@ -1059,11 +1059,11 @@ Standard_Boolean Select3D_SensitivePrimitiveArray::overlapsElement (SelectBasics
myMinDepthElem = aPickResult.Depth();
}
aResult = Standard_True;
}
if (!myDetectedElemMap.IsNull()
&& theMgr.GetActiveSelectionType() != SelectBasics_SelectingVolumeManager::Point)
{
myDetectedElemMap->ChangeMap().Add (aTriIndex);
if (!myDetectedElemMap.IsNull()
&& theMgr.GetActiveSelectionType() != SelectBasics_SelectingVolumeManager::Point)
{
myDetectedElemMap->ChangeMap().Add(aTriIndex);
}
}
}
if (myToDetectNode)