missing inline and added some constnt

This commit is contained in:
T.Alderighi 2018-10-23 14:35:50 +02:00
parent 04f8825547
commit d0ffe2a48f
3 changed files with 12 additions and 11 deletions

View File

@ -210,10 +210,10 @@ public:
template<class BoxType>
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));
}

View File

@ -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<MeshType> & info)

View File

@ -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<wrap/callback.h>
#include<wrap/ply/plylib.h>
@ -43,11 +43,11 @@ namespace io {
template <class TYPE>
int PlyType () { return 0;}
template <> int PlyType <float >() { return ply::T_FLOAT; }
template <> int PlyType <double>() { return ply::T_DOUBLE; }
template <> int PlyType <int >() { return ply::T_INT; }
template <> int PlyType <short >() { return ply::T_SHORT; }
template <> int PlyType <unsigned char >() { return ply::T_UCHAR; }
template <> inline int PlyType <float >() { return ply::T_FLOAT; }
template <> inline int PlyType <double>() { return ply::T_DOUBLE; }
template <> inline int PlyType <int >() { return ply::T_INT; }
template <> inline int PlyType <short >() { return ply::T_SHORT; }
template <> inline int PlyType <unsigned char >() { return ply::T_UCHAR; }
/**
This class encapsulate a filter for opening ply meshes.