Fix warnings about unused variables/local types/local functions

This commit is contained in:
Laurent Rineau 2015-07-08 14:51:48 +02:00
parent a642c37ba1
commit f17d91f4e3
4 changed files with 8 additions and 20 deletions

View File

@ -716,8 +716,6 @@ void
C3t3_rib_exporter_plugin::
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(),
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);
/*
typedef Kernel::Oriented_side Side;
// Transparency on the negative side of the plane
const Side s0 = plane.oriented_side(c->vertex(0)->point());
const Side s1 = plane.oriented_side(c->vertex(1)->point());

View File

@ -19,18 +19,6 @@
#include <QGLViewer/manipulatedFrame.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 {
Scene_c3t3_item_priv() : c3t3() {}
Scene_c3t3_item_priv(const C3t3& c3t3_) : c3t3(c3t3_) {}

View File

@ -1355,9 +1355,9 @@ void Scene::gl_draw_location() {
Point cp = Point(c.x(),c.y(),c.z());
// project facet center
double px,py,pz;
// gluProject(cp.x(),cp.y(),cp.z(),
// modelMatrix, projMatrix, viewport,
// &px,&py,&pz);
gluProject(cp.x(),cp.y(),cp.z(),
modelMatrix, projMatrix, viewport,
&px,&py,&pz);
cf.push_back(Projected_triangle(pz,Triangle(p,q,r)));
}
}

View File

@ -2390,9 +2390,9 @@ void Viewer::draw_cylinder(float R, int prec, std::vector<float> *vertices, std:
{
vertices->resize(0);
normals->resize(0);
int rings=360/prec, sectors=360/prec;
float T, P;
float x[4],y[4],z[4];
// int rings=360/prec, sectors=360/prec;
// float T, P;
// float x[4],y[4],z[4];
//Closing nicely the tubes will cause z-fighting and the spherical parts will get all messy
/*
//top of the cylinder