mirror of https://github.com/CGAL/cgal
Fix warnings about unused variables/local types/local functions
This commit is contained in:
parent
a642c37ba1
commit
f17d91f4e3
|
|
@ -716,8 +716,6 @@ void
|
||||||
C3t3_rib_exporter_plugin::
|
C3t3_rib_exporter_plugin::
|
||||||
write_surface_cells(const C3t3& c3t3, const Plane& plane, std::ofstream& out)
|
write_surface_cells(const C3t3& c3t3, const Plane& plane, std::ofstream& out)
|
||||||
{
|
{
|
||||||
typedef Kernel::Oriented_side Side;
|
|
||||||
|
|
||||||
for ( C3t3::Cells_in_complex_iterator it_cell = c3t3.cells_in_complex_begin(),
|
for ( C3t3::Cells_in_complex_iterator it_cell = c3t3.cells_in_complex_begin(),
|
||||||
end = c3t3.cells_in_complex_end() ; it_cell != end ; ++it_cell )
|
end = c3t3.cells_in_complex_end() ; it_cell != end ; ++it_cell )
|
||||||
{
|
{
|
||||||
|
|
@ -788,6 +786,8 @@ write_surface_cells(const C3t3& c3t3, const Plane& plane, std::ofstream& out)
|
||||||
QColor edgecolor = facecolor.darker(150);
|
QColor edgecolor = facecolor.darker(150);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
typedef Kernel::Oriented_side Side;
|
||||||
|
|
||||||
// Transparency on the negative side of the plane
|
// Transparency on the negative side of the plane
|
||||||
const Side s0 = plane.oriented_side(c->vertex(0)->point());
|
const Side s0 = plane.oriented_side(c->vertex(0)->point());
|
||||||
const Side s1 = plane.oriented_side(c->vertex(1)->point());
|
const Side s1 = plane.oriented_side(c->vertex(1)->point());
|
||||||
|
|
|
||||||
|
|
@ -19,18 +19,6 @@
|
||||||
#include <QGLViewer/manipulatedFrame.h>
|
#include <QGLViewer/manipulatedFrame.h>
|
||||||
#include <QGLViewer/qglviewer.h>
|
#include <QGLViewer/qglviewer.h>
|
||||||
|
|
||||||
namespace {
|
|
||||||
void CGALglcolor(QColor c, int dv = 0)
|
|
||||||
{
|
|
||||||
if ( 0 != dv )
|
|
||||||
{
|
|
||||||
c = c.darker(dv);
|
|
||||||
#undef darker
|
|
||||||
}
|
|
||||||
|
|
||||||
::glColor4f(c.red()/255.0, c.green()/255.0, c.blue()/255.0, c.alpha()/255.0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
struct Scene_c3t3_item_priv {
|
struct Scene_c3t3_item_priv {
|
||||||
Scene_c3t3_item_priv() : c3t3() {}
|
Scene_c3t3_item_priv() : c3t3() {}
|
||||||
Scene_c3t3_item_priv(const C3t3& c3t3_) : c3t3(c3t3_) {}
|
Scene_c3t3_item_priv(const C3t3& c3t3_) : c3t3(c3t3_) {}
|
||||||
|
|
|
||||||
|
|
@ -1355,9 +1355,9 @@ void Scene::gl_draw_location() {
|
||||||
Point cp = Point(c.x(),c.y(),c.z());
|
Point cp = Point(c.x(),c.y(),c.z());
|
||||||
// project facet center
|
// project facet center
|
||||||
double px,py,pz;
|
double px,py,pz;
|
||||||
// gluProject(cp.x(),cp.y(),cp.z(),
|
gluProject(cp.x(),cp.y(),cp.z(),
|
||||||
// modelMatrix, projMatrix, viewport,
|
modelMatrix, projMatrix, viewport,
|
||||||
// &px,&py,&pz);
|
&px,&py,&pz);
|
||||||
cf.push_back(Projected_triangle(pz,Triangle(p,q,r)));
|
cf.push_back(Projected_triangle(pz,Triangle(p,q,r)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2390,9 +2390,9 @@ void Viewer::draw_cylinder(float R, int prec, std::vector<float> *vertices, std:
|
||||||
{
|
{
|
||||||
vertices->resize(0);
|
vertices->resize(0);
|
||||||
normals->resize(0);
|
normals->resize(0);
|
||||||
int rings=360/prec, sectors=360/prec;
|
// int rings=360/prec, sectors=360/prec;
|
||||||
float T, P;
|
// float T, P;
|
||||||
float x[4],y[4],z[4];
|
// float x[4],y[4],z[4];
|
||||||
//Closing nicely the tubes will cause z-fighting and the spherical parts will get all messy
|
//Closing nicely the tubes will cause z-fighting and the spherical parts will get all messy
|
||||||
/*
|
/*
|
||||||
//top of the cylinder
|
//top of the cylinder
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue