small GCC compiling issues

This commit is contained in:
Paolo Cignoni 2006-04-20 08:30:27 +00:00
parent 4ae1cb2a64
commit c5f4a75533
3 changed files with 79 additions and 68 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.19 2006/03/27 04:17:07 cignoni
moved to generic export.h
Revision 1.18 2006/01/10 13:20:40 cignoni
Changed ply::PlyMask to io::Mask
@ -83,7 +86,7 @@ GPL added
// standard libraries
#include <time.h>
using namespace std;
// project definitions.
#include "defs.h"
#include "sampling.h"
@ -97,7 +100,7 @@ GPL added
// -----------------------------------------------------------------------------------------------
using namespace std;
using namespace vcg;

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.21 2006/01/22 10:05:43 cignoni
Corrected use of Area with the unambiguous DoubleArea
Revision 1.20 2005/11/12 06:44:29 cignoni
Changed GetClosest -> GetClosestFace
@ -608,14 +611,14 @@ void Sampling<MetroMesh>::Hausdorff()
{
Box3< ScalarType> bbox;
typedef typename std::vector<FaceType>::iterator FaceVecIterator;
// set grid meshes.
if(Flags & SamplingFlags::USE_HASH_GRID)
hS2.Set<vector<FaceType>::iterator>(S2.face.begin(),S2.face.end());
hS2.Set(S2.face.begin(),S2.face.end());
if(Flags & SamplingFlags::USE_AABB_TREE)
tS2.Set<vector<FaceType>::iterator>(S2.face.begin(),S2.face.end());
tS2.Set(S2.face.begin(),S2.face.end());
if(Flags & SamplingFlags::USE_STATIC_GRID)
gS2.Set<vector<FaceType>::iterator>(S2.face.begin(),S2.face.end());
gS2.Set(S2.face.begin(),S2.face.end());
// set bounding box
bbox = S2.bbox;

View File

@ -24,6 +24,11 @@
History
$Log: not supported by cvs2svn $
Revision 1.17 2006/01/23 21:26:57 ponchio
gcc compatibility (templates mostly)
bbox -> this->bbox
More consistent use of Box3x and such.
Revision 1.16 2006/01/23 15:26:31 ponchio
P1 --> HASH_P1
Old definition was conflicting with functions in segment.h
@ -355,7 +360,7 @@ namespace vcg{
{
IteHtable I;
vcg::Point3i _c;
PToIP(p,_c);
this->PToIP(p,_c);
Grid(_c,first,last);
}