diff --git a/vcg/simplex/tetrahedron/base.h b/vcg/simplex/tetrahedron/base.h index aad9e1df..b5e9bc71 100644 --- a/vcg/simplex/tetrahedron/base.h +++ b/vcg/simplex/tetrahedron/base.h @@ -210,10 +210,10 @@ public: template void GetBBox( BoxType & bb ) const { - bb.Set(this->P(0)); - bb.Add(this->P(1)); - bb.Add(this->P(2)); - bb.Add(this->P(3)); + bb.Set(this->cP(0)); + bb.Add(this->cP(1)); + bb.Add(this->cP(2)); + bb.Add(this->cP(3)); } diff --git a/wrap/io_tetramesh/import_msh.h b/wrap/io_tetramesh/import_msh.h index 8d0a0857..d6a4cbdd 100644 --- a/wrap/io_tetramesh/import_msh.h +++ b/wrap/io_tetramesh/import_msh.h @@ -392,6 +392,7 @@ class ImporterMSH std::string buf; while (buf != tagEnd && !fin.eof()) fin >> buf; + return 0; } static int parseMshMesh(MeshType &m, std::string &filename, MshInfo & info) diff --git a/wrap/io_tetramesh/import_ply.h b/wrap/io_tetramesh/import_ply.h index af7e2fe9..dc7b60db 100644 --- a/wrap/io_tetramesh/import_ply.h +++ b/wrap/io_tetramesh/import_ply.h @@ -28,8 +28,8 @@ Revision 1.1 2004/06/03 13:16:32 ganovelli created ****************************************************************************/ -#ifndef __VCGLIB_TETRAIMPORTERPLY -#define __VCGLIB_TETRAIMPORTERPLY +#ifndef __VCGLIB_TETRAIMPORTER_PLY +#define __VCGLIB_TETRAIMPORTER_PLY #include #include @@ -43,11 +43,11 @@ namespace io { template int PlyType () { return 0;} -template <> int PlyType () { return ply::T_FLOAT; } -template <> int PlyType () { return ply::T_DOUBLE; } -template <> int PlyType () { return ply::T_INT; } -template <> int PlyType () { return ply::T_SHORT; } -template <> int PlyType () { return ply::T_UCHAR; } +template <> inline int PlyType () { return ply::T_FLOAT; } +template <> inline int PlyType () { return ply::T_DOUBLE; } +template <> inline int PlyType () { return ply::T_INT; } +template <> inline int PlyType () { return ply::T_SHORT; } +template <> inline int PlyType () { return ply::T_UCHAR; } /** This class encapsulate a filter for opening ply meshes.