Commit 926bb04d authored by Dirk Wilden's avatar Dirk Wilden

removed warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10623 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7eefeee6
......@@ -50,7 +50,7 @@ const ACG::Vec4f base_color (0.4,0.4,0.4,1.0);
//******************************************************************************
bool MoveObjectMarker::stencilRefForObject(BaseObjectData * _obj, GLuint & _reference)
bool MoveObjectMarker::stencilRefForObject(BaseObjectData * /*_obj*/, GLuint & _reference)
{
_reference = 1;
return true;
......
......@@ -1417,7 +1417,7 @@ void MovePlugin::slotUnifyBoundingBoxDiagonal()
useCommonBB = ( button == QMessageBox::Yes );
double count = 0.0;
if ( useCommonBB ) {
......@@ -1780,14 +1780,13 @@ template< typename MeshT >
void MovePlugin::unifyBBDiag( MeshT& _mesh, ACG::Vec3d& _bb_min, ACG::Vec3d& _bb_max )
{
typename MeshT::VertexIter v_it = _mesh.vertices_begin();
typename MeshT::VertexIter v_end = _mesh.vertices_end();
typename MeshT::Point bb_center = 0.5 * (_bb_min + _bb_max) ;
typename MeshT::Scalar scale = 1.0/(_bb_max-_bb_min).norm();
for( v_it ; v_it!=v_end; ++v_it)
typename MeshT::VertexIter v_it;
for( v_it = _mesh.vertices_begin(); v_it!=_mesh.vertices_end(); ++v_it)
_mesh.point(v_it) = (_mesh.point(v_it) - bb_center) * scale + bb_center;
_mesh.update_normals();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment