remove harmless warnings
This commit is contained in:
parent
711c985689
commit
bafcd1768e
|
@ -498,7 +498,7 @@ typedef Walker /*< Old_Mesh,New_Mesh>*/ MyWalker;
|
||||||
typedef vcg::tri::MarchingCubes<New_Mesh, MyWalker> MyMarchingCubes;
|
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
|
///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
|
///be sure that the bounding box is updated
|
||||||
vcg::tri::UpdateBounding<Old_Mesh>::Box(old_mesh);
|
vcg::tri::UpdateBounding<Old_Mesh>::Box(old_mesh);
|
||||||
|
|
|
@ -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)
|
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;
|
Point3f primary=pri;
|
||||||
|
|
||||||
if( primary.Norm() < EPSILON*size )
|
if( primary.Norm() < EPSILON*size )
|
||||||
|
@ -345,7 +345,7 @@ void MovableCoordinateFrame::Move(const Similarityf track)
|
||||||
|
|
||||||
void MovableCoordinateFrame::RotateToAlign(const Point3f source, const Point3f dest)
|
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
|
// source and dest must be versors
|
||||||
assert( math::Abs(source.Norm() - 1) < EPSILON);
|
assert( math::Abs(source.Norm() - 1) < EPSILON);
|
||||||
assert( math::Abs(dest.Norm() - 1) < EPSILON);
|
assert( math::Abs(dest.Norm() - 1) < EPSILON);
|
||||||
|
|
Loading…
Reference in New Issue