mirror of
https://github.com/NGSolve/netgen.git
synced 2025-03-15 18:31:27 +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 <myadt.hpp>
|
||||||
#include <meshing.hpp>
|
#include <meshing.hpp>
|
||||||
// #include <csg.hpp>
|
|
||||||
|
|
||||||
#ifdef STLGEOM
|
|
||||||
#include <stlgeom.hpp>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// #include <parallel.hpp>
|
|
||||||
|
|
||||||
#include <visual.hpp>
|
#include <visual.hpp>
|
||||||
|
|
||||||
namespace netgen
|
namespace netgen
|
||||||
{
|
{
|
||||||
// extern shared_ptr<Mesh> mesh;
|
|
||||||
extern NetgenGeometry * ng_geometry;
|
extern NetgenGeometry * ng_geometry;
|
||||||
|
|
||||||
VisualSceneMesh vsmesh;
|
VisualSceneMesh vsmesh;
|
||||||
@ -992,10 +982,6 @@ namespace netgen
|
|||||||
|
|
||||||
glBindTexture(GL_TEXTURE_2D, colors.texture);
|
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);
|
glEnable (GL_NORMALIZE);
|
||||||
|
|
||||||
glLineWidth (1.0f);
|
glLineWidth (1.0f);
|
||||||
@ -1075,13 +1061,6 @@ namespace netgen
|
|||||||
|
|
||||||
bool drawel = (!el.IsDeleted() && el.IsVisible());
|
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)
|
if (!drawel)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -1393,11 +1372,6 @@ namespace netgen
|
|||||||
|
|
||||||
linetimestamp = NextTimeStamp();
|
linetimestamp = NextTimeStamp();
|
||||||
|
|
||||||
#ifdef STLGEOM
|
|
||||||
STLGeometry * stlgeometry = dynamic_cast<STLGeometry*> (ng_geometry);
|
|
||||||
bool checkvicinity = (stlgeometry != NULL) && stldoctor.showvicinity;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (linelist)
|
if (linelist)
|
||||||
glDeleteLists (linelist, 1);
|
glDeleteLists (linelist, 1);
|
||||||
|
|
||||||
@ -1418,12 +1392,6 @@ namespace netgen
|
|||||||
|
|
||||||
bool drawel = (!el.IsDeleted() && el.IsVisible());
|
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)
|
if (!drawel)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user