remove harmless warnings

This commit is contained in:
Paolo Cignoni 2008-07-02 13:26:25 +00:00
parent 711c985689
commit bafcd1768e
2 changed files with 3 additions and 3 deletions

View File

@ -498,7 +498,7 @@ typedef Walker /*< Old_Mesh,New_Mesh>*/ MyWalker;
typedef vcg::tri::MarchingCubes<New_Mesh, MyWalker> MyMarchingCubes;
///resample the mesh using marching cube algorithm ,the accuracy is the dimension of one cell the parameter
static void Resample(Old_Mesh &old_mesh,New_Mesh &new_mesh,vcg::Point3<int> accuracy,float max_dist, float thr=0, vcg::CallBackPos *cb )
static void Resample(Old_Mesh &old_mesh,New_Mesh &new_mesh,vcg::Point3<int> accuracy,float max_dist, float thr=0, vcg::CallBackPos *cb=0 )
{
///be sure that the bounding box is updated
vcg::tri::UpdateBounding<Old_Mesh>::Box(old_mesh);

View File

@ -279,7 +279,7 @@ void MovableCoordinateFrame::Rot(float angle_deg,const Point3f axis)
void MovableCoordinateFrame::AlignWith(const Point3f pri,const Point3f secondary,const char c1, const char c2)
{
const float EPSILON=1e-6;
const float EPSILON=1e-6f;
Point3f primary=pri;
if( primary.Norm() < EPSILON*size )
@ -345,7 +345,7 @@ void MovableCoordinateFrame::Move(const Similarityf track)
void MovableCoordinateFrame::RotateToAlign(const Point3f source, const Point3f dest)
{
const float EPSILON=1e-6;
const float EPSILON=1e-6f;
// source and dest must be versors
assert( math::Abs(source.Norm() - 1) < EPSILON);
assert( math::Abs(dest.Norm() - 1) < EPSILON);