mirror of
https://github.com/NGSolve/netgen.git
synced 2025-03-14 07:11:34 +05:00
Clean up vsmesh.cpp (remove unused code)
This commit is contained in:
parent
be2d58ed33
commit
e30b727c7b
@ -2,20 +2,10 @@
|
||||
|
||||
#include <myadt.hpp>
|
||||
#include <meshing.hpp>
|
||||
// #include <csg.hpp>
|
||||
|
||||
#ifdef STLGEOM
|
||||
#include <stlgeom.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
// #include <parallel.hpp>
|
||||
|
||||
#include <visual.hpp>
|
||||
|
||||
namespace netgen
|
||||
{
|
||||
// extern shared_ptr<Mesh> mesh;
|
||||
extern NetgenGeometry * ng_geometry;
|
||||
|
||||
VisualSceneMesh vsmesh;
|
||||
@ -992,10 +982,6 @@ namespace netgen
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D, colors.texture);
|
||||
|
||||
#ifdef STLGEOM
|
||||
STLGeometry * stlgeometry = dynamic_cast<STLGeometry*> (ng_geometry);
|
||||
bool checkvicinity = (stlgeometry != NULL) && stldoctor.showvicinity;
|
||||
#endif
|
||||
glEnable (GL_NORMALIZE);
|
||||
|
||||
glLineWidth (1.0f);
|
||||
@ -1075,13 +1061,6 @@ namespace netgen
|
||||
|
||||
bool drawel = (!el.IsDeleted() && el.IsVisible());
|
||||
|
||||
#ifdef STLGEOM
|
||||
if (checkvicinity)
|
||||
for (int j = 0; j < el.GetNP(); j++)
|
||||
if (!stlgeometry->Vicinity(el.GeomInfoPi(j+1).trignum))
|
||||
drawel = 0;
|
||||
#endif
|
||||
|
||||
if (!drawel)
|
||||
continue;
|
||||
|
||||
@ -1393,11 +1372,6 @@ namespace netgen
|
||||
|
||||
linetimestamp = NextTimeStamp();
|
||||
|
||||
#ifdef STLGEOM
|
||||
STLGeometry * stlgeometry = dynamic_cast<STLGeometry*> (ng_geometry);
|
||||
bool checkvicinity = (stlgeometry != NULL) && stldoctor.showvicinity;
|
||||
#endif
|
||||
|
||||
if (linelist)
|
||||
glDeleteLists (linelist, 1);
|
||||
|
||||
@ -1418,12 +1392,6 @@ namespace netgen
|
||||
|
||||
bool drawel = (!el.IsDeleted() && el.IsVisible());
|
||||
|
||||
#ifdef STLGEOM
|
||||
if (checkvicinity)
|
||||
for (int j = 0; j < el.GetNP(); j++)
|
||||
if (!stlgeometry->Vicinity(el.GeomInfoPi(j+1).trignum))
|
||||
drawel = 0;
|
||||
#endif
|
||||
|
||||
if (!drawel)
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user