changes needed for compilation on linux 64b with gcc 3.4.5
This commit is contained in:
parent
53dfb84a07
commit
2754d4697d
|
@ -25,6 +25,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.4 2006/03/29 09:27:07 cignoni
|
||||||
|
Added managemnt of non critical errors
|
||||||
|
|
||||||
Revision 1.3 2006/03/29 08:51:16 corsini
|
Revision 1.3 2006/03/29 08:51:16 corsini
|
||||||
reset to zero warnings
|
reset to zero warnings
|
||||||
|
|
||||||
|
@ -693,6 +696,7 @@ static int Open( OpenMeshType &m, const char * filename, Info &oi)
|
||||||
(*fi).C()[3] = faceColor[3];
|
(*fi).C()[3] = faceColor[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
// A face polygon composed of more than three vertices is triangulated
|
// A face polygon composed of more than three vertices is triangulated
|
||||||
// according to the following schema:
|
// according to the following schema:
|
||||||
// v5
|
// v5
|
||||||
|
@ -709,7 +713,7 @@ static int Open( OpenMeshType &m, const char * filename, Info &oi)
|
||||||
// has been split into the triangles (v1,v2,v3), (v1,v3,v4) e (v1,v4,v5).
|
// has been split into the triangles (v1,v2,v3), (v1,v3,v4) e (v1,v4,v5).
|
||||||
// This way vertex v1 becomes the common vertex of all newly generated
|
// This way vertex v1 becomes the common vertex of all newly generated
|
||||||
// triangles, and this may lead to the creation of very thin triangles.
|
// triangles, and this may lead to the creation of very thin triangles.
|
||||||
|
*/
|
||||||
++fi;
|
++fi;
|
||||||
++numTriangles;
|
++numTriangles;
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,9 @@ of Greg Turk and on the work of Claudio Rocchini
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.4 2005/12/02 00:00:53 cignoni
|
||||||
|
Moved and corrected interpret_texture_name from plystuff.h to plylib.cpp
|
||||||
|
|
||||||
Revision 1.3 2005/03/18 00:14:40 cignoni
|
Revision 1.3 2005/03/18 00:14:40 cignoni
|
||||||
removed small gcc compiling issues
|
removed small gcc compiling issues
|
||||||
|
|
||||||
|
@ -48,7 +51,9 @@ Cleaning of the automatic bbox caching support for ply files. First working vers
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
#ifdef WIN32
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <vcg/space/box3.h>
|
#include <vcg/space/box3.h>
|
||||||
#include <wrap/ply/plylib.h>
|
#include <wrap/ply/plylib.h>
|
||||||
|
@ -69,6 +74,8 @@ using namespace vcg;
|
||||||
#define pb_fstat fstat
|
#define pb_fstat fstat
|
||||||
#define pb_open open
|
#define pb_open open
|
||||||
#define pb_close close
|
#define pb_close close
|
||||||
|
#define _O_BINARY 0 // Does not exist on Unix
|
||||||
|
#define _O_RDONLY O_RDONLY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -256,9 +263,9 @@ bool ScanBBox( const char * fname, Box3d & box, bool use_cache=true )
|
||||||
|
|
||||||
static const PropDescriptor pv[3]=
|
static const PropDescriptor pv[3]=
|
||||||
{
|
{
|
||||||
{"vertex","x",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,x),0,0,0,0,0},
|
{"vertex","x",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,x),0,0,0,0,0 ,0}, // TO GET RID OF COMPILER WARNING I ADDED 0 TO INITIALIZE format (MV)
|
||||||
{"vertex","y",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,y),0,0,0,0,0},
|
{"vertex","y",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,y),0,0,0,0,0 ,0}, // TO GET RID OF COMPILER WARNING I ADDED 0 TO INITIALIZE format (MV)
|
||||||
{"vertex","z",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,z),0,0,0,0,0},
|
{"vertex","z",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,z),0,0,0,0,0, 0},// TO GET RID OF COMPILER WARNING I ADDED 0 TO INITIALIZE format (MV)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -321,9 +328,9 @@ bool ScanBBox( const char * fname, Box3d & box, const Matrix44d & m, bool use_ca
|
||||||
|
|
||||||
static const PropDescriptor pv[3]=
|
static const PropDescriptor pv[3]=
|
||||||
{
|
{
|
||||||
{"vertex","x",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,x),0,0,0,0,0},
|
{"vertex","x",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,x),0,0,0,0,0, 0},// TO GET RID OF COMPILER WARNING I ADDED 0 TO INITIALIZE format (MV)
|
||||||
{"vertex","y",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,y),0,0,0,0,0},
|
{"vertex","y",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,y),0,0,0,0,0, 0},// TO GET RID OF COMPILER WARNING I ADDED 0 TO INITIALIZE format (MV)
|
||||||
{"vertex","z",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,z),0,0,0,0,0},
|
{"vertex","z",T_FLOAT,T_DOUBLE,offsetof(PlyPoint3d,z),0,0,0,0,0, 0},// TO GET RID OF COMPILER WARNING I ADDED 0 TO INITIALIZE format (MV)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue