mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
octree box visualization
This commit is contained in:
parent
b9ab927f23
commit
03f0f97c23
@ -358,10 +358,30 @@ namespace netgen
|
||||
|
||||
glColor3d (1, 0, 0);
|
||||
glBegin (GL_LINES);
|
||||
int edges[12][2] =
|
||||
{ { 0, 1 },
|
||||
{ 2, 3 },
|
||||
{ 4, 5 },
|
||||
{ 6, 7 },
|
||||
{ 0, 2 },
|
||||
{ 1, 3 },
|
||||
{ 4, 6 },
|
||||
{ 5, 7 },
|
||||
{ 0, 4 },
|
||||
{ 1, 5 },
|
||||
{ 2, 6 },
|
||||
{ 3, 7 } };
|
||||
for (int i = 0; i < boxes.Size(); i++)
|
||||
{
|
||||
for (int j = 0; j < 12; j++)
|
||||
{
|
||||
glVertex3dv ( boxes[i].GetPointNr(edges[j][0]) );
|
||||
glVertex3dv ( boxes[i].GetPointNr(edges[j][1]) );
|
||||
}
|
||||
/*
|
||||
glVertex3dv ( boxes[i].PMin() );
|
||||
glVertex3dv ( boxes[i].PMax() );
|
||||
*/
|
||||
}
|
||||
glEnd();
|
||||
|
||||
@ -467,6 +487,8 @@ namespace netgen
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
glPopMatrix();
|
||||
|
||||
if (vispar.drawcoordinatecross)
|
||||
|
Loading…
Reference in New Issue
Block a user