mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-07 18:30:55 +03:00
0027601: TKV3d, AIS_RubberBand - polygonal selection mode invokes an exception with convex fill area
Corrected allocation of primitive array for triangles.
This commit is contained in:
parent
1b9f5d9504
commit
9d1bf7ae05
@ -324,7 +324,7 @@ Standard_Boolean AIS_RubberBand::fillTriangles()
|
|||||||
|
|
||||||
|
|
||||||
Standard_Boolean toFill = Standard_False;
|
Standard_Boolean toFill = Standard_False;
|
||||||
if (myTriangles.IsNull() || myTriangles->VertexNumber() != myPoints.Length() + 1)
|
if (myTriangles.IsNull() || myTriangles->VertexNumber() != aTriangles.Extent() * 3)
|
||||||
{
|
{
|
||||||
toFill = Standard_True;
|
toFill = Standard_True;
|
||||||
myTriangles = new Graphic3d_ArrayOfTriangles (aTriangles.Extent() * 3, 0, Standard_True);
|
myTriangles = new Graphic3d_ArrayOfTriangles (aTriangles.Extent() * 3, 0, Standard_True);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user