1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0029958: Visualization - add method Graphic3d_ArrayOfPrimitives::AddEdges() taking up to 4 edges

This commit is contained in:
kgv
2018-07-14 13:59:22 +03:00
committed by bugmaster
parent 6f26baa0fc
commit fb60181a3a
3 changed files with 38 additions and 9 deletions

View File

@@ -55,12 +55,8 @@ namespace
theTris->AddVertex (gp_Pnt (theXLeft + theSizeX, theYBottom, 0.0), theColorBottom);
theTris->AddVertex (gp_Pnt (theXLeft, theYBottom + theSizeY, 0.0), theColorTop);
theTris->AddVertex (gp_Pnt (theXLeft + theSizeX, theYBottom + theSizeY, 0.0), theColorTop);
theTris->AddEdge (aVertIndex);
theTris->AddEdge (aVertIndex + 1);
theTris->AddEdge (aVertIndex + 2);
theTris->AddEdge (aVertIndex + 1);
theTris->AddEdge (aVertIndex + 2);
theTris->AddEdge (aVertIndex + 3);
theTris->AddEdges (aVertIndex, aVertIndex + 1, aVertIndex + 2);
theTris->AddEdges (aVertIndex + 1, aVertIndex + 2, aVertIndex + 3);
}
//! Compute hue angle from specified value.