mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0031356: Visualization - out of range within StdPrs_WFShape::AddEdgesOnTriangulation()
Removed unused code causing the issue.
This commit is contained in:
parent
8b3fbdef34
commit
e73ef9d219
@ -465,10 +465,8 @@ void StdPrs_WFShape::AddEdgesOnTriangulation (TColgp_SequenceOfPnt& theSegments,
|
|||||||
|
|
||||||
// Allocate the arrays.
|
// Allocate the arrays.
|
||||||
TColStd_Array1OfInteger aFree (1, 2 * aNbFree);
|
TColStd_Array1OfInteger aFree (1, 2 * aNbFree);
|
||||||
Standard_Integer aNbInternal = (3 * aNbTriangles - aNbFree) / 2;
|
|
||||||
TColStd_Array1OfInteger anInternal (0, 2 * aNbInternal);
|
|
||||||
|
|
||||||
Standard_Integer aFreeIndex = 1, anIntIndex = 1;
|
Standard_Integer aFreeIndex = 1;
|
||||||
const Poly_Array1OfTriangle& aTriangles = T->Triangles();
|
const Poly_Array1OfTriangle& aTriangles = T->Triangles();
|
||||||
for (Standard_Integer anI = 1; anI <= aNbTriangles; ++anI)
|
for (Standard_Integer anI = 1; anI <= aNbTriangles; ++anI)
|
||||||
{
|
{
|
||||||
@ -483,13 +481,6 @@ void StdPrs_WFShape::AddEdgesOnTriangulation (TColgp_SequenceOfPnt& theSegments,
|
|||||||
aFree (aFreeIndex + 1) = aN[k];
|
aFree (aFreeIndex + 1) = aN[k];
|
||||||
aFreeIndex += 2;
|
aFreeIndex += 2;
|
||||||
}
|
}
|
||||||
// internal edge if this triangle has a lower index than the adjacent.
|
|
||||||
else if (anI < aT[aJ])
|
|
||||||
{
|
|
||||||
anInternal (anIntIndex) = aN[aJ];
|
|
||||||
anInternal (anIntIndex + 1) = aN[k];
|
|
||||||
anIntIndex += 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user