mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0031565: Visualization - SIGFPE, Arithmetic exception if SelectMgr_TriangularFrustumSet::Build() is called with single point
This commit is contained in:
parent
b04decfaae
commit
1b6e8b9f09
@ -45,7 +45,7 @@ void SelectMgr_TriangularFrustumSet::Build (const TColgp_Array1OfPnt2d& thePoint
|
||||
Handle(BRepMesh_DataStructureOfDelaun) aMeshStructure = new BRepMesh_DataStructureOfDelaun (anAllocator);
|
||||
Standard_Integer aPtsLower = thePoints.Lower();
|
||||
Standard_Integer aPtsUpper = thePoints.Upper();
|
||||
IMeshData::VectorOfInteger anIndexes(aPtsUpper - aPtsLower, anAllocator);
|
||||
IMeshData::VectorOfInteger anIndexes (thePoints.Size(), anAllocator);
|
||||
myBoundaryPoints.Resize (aPtsLower, aPtsLower + 2 * (thePoints.Size()) - 1, Standard_False);
|
||||
|
||||
for (Standard_Integer aPtIdx = aPtsLower; aPtIdx <= aPtsUpper; ++aPtIdx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user