removed harmless warnings
This commit is contained in:
parent
9a137ad9ef
commit
302a7725fa
|
@ -104,7 +104,7 @@ class FaceTypeHolder{
|
||||||
typedef BTT *TetraPointer;
|
typedef BTT *TetraPointer;
|
||||||
template <class LeftF>
|
template <class LeftF>
|
||||||
void ImportLocal(const LeftF & ){}
|
void ImportLocal(const LeftF & ){}
|
||||||
static void Name(std::vector<std::string> & name){}
|
static void Name(std::vector<std::string> & /* name */){}
|
||||||
|
|
||||||
|
|
||||||
// prot
|
// prot
|
||||||
|
|
|
@ -95,7 +95,7 @@ class VertexTypeHolder{
|
||||||
typedef BTT *TetraPointer;
|
typedef BTT *TetraPointer;
|
||||||
template < class LeftV>
|
template < class LeftV>
|
||||||
void ImportLocal(const LeftV & /* left */ ) { }
|
void ImportLocal(const LeftV & /* left */ ) { }
|
||||||
static void Name(std::vector<std::string> & name){}
|
static void Name(std::vector<std::string> & /* name */){}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ namespace io {
|
||||||
/* save Ocf Vertex Components */
|
/* save Ocf Vertex Components */
|
||||||
template <typename OpenMeshType,typename CONT>
|
template <typename OpenMeshType,typename CONT>
|
||||||
struct SaveVertexOcf{
|
struct SaveVertexOcf{
|
||||||
SaveVertexOcf(FILE*f, const CONT & vert, bool only_header){
|
SaveVertexOcf(FILE*f, const CONT & /*vert*/, bool only_header){
|
||||||
// do nothing, it is a std::vector
|
// do nothing, it is a std::vector
|
||||||
if(only_header){
|
if(only_header){
|
||||||
WriteString(f,"NOT_HAS_VERTEX_QUALITY_OCF");
|
WriteString(f,"NOT_HAS_VERTEX_QUALITY_OCF");
|
||||||
|
@ -144,7 +144,7 @@ namespace io {
|
||||||
/* save Ocf Face Components */
|
/* save Ocf Face Components */
|
||||||
template <typename MeshType,typename CONT>
|
template <typename MeshType,typename CONT>
|
||||||
struct SaveFaceOcf{
|
struct SaveFaceOcf{
|
||||||
SaveFaceOcf(FILE * f,const CONT & face, bool only_header){
|
SaveFaceOcf(FILE * f,const CONT & /*face*/, bool only_header){
|
||||||
// it is a std::vector
|
// it is a std::vector
|
||||||
if(only_header){
|
if(only_header){
|
||||||
WriteString(f,"NOT_HAS_FACE_QUALITY_OCF");
|
WriteString(f,"NOT_HAS_FACE_QUALITY_OCF");
|
||||||
|
|
|
@ -300,7 +300,7 @@ namespace io {
|
||||||
|
|
||||||
template <typename MeshType, typename CONT>
|
template <typename MeshType, typename CONT>
|
||||||
struct LoadVertexOcf{
|
struct LoadVertexOcf{
|
||||||
LoadVertexOcf(FILE*f,const CONT & vert){
|
LoadVertexOcf(FILE* /*f*/,const CONT & /*vert*/){
|
||||||
// do nothing, it is a std::vector
|
// do nothing, it is a std::vector
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -382,7 +382,7 @@ namespace io {
|
||||||
|
|
||||||
template <typename MeshType, typename CONT>
|
template <typename MeshType, typename CONT>
|
||||||
struct LoadFaceOcf{
|
struct LoadFaceOcf{
|
||||||
LoadFaceOcf(FILE * f, const CONT & face){
|
LoadFaceOcf(FILE * /* f */ , const CONT & /* face */){
|
||||||
// do nothing, it is a std::vector
|
// do nothing, it is a std::vector
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -398,7 +398,7 @@ namespace io {
|
||||||
|
|
||||||
// face color
|
// face color
|
||||||
ReadString(f,s);
|
ReadString(f,s);
|
||||||
if( s == std::string("HAS_FACE_COLOR_OCF")) mask |= Mask::IOM_FACECOLOR;
|
if( s == std::string("HAS_FACE_COLOR_OCF")) mask |= Mask::IOM_FACECOLOR;
|
||||||
|
|
||||||
// face normal
|
// face normal
|
||||||
ReadString(f,s);
|
ReadString(f,s);
|
||||||
|
@ -616,7 +616,7 @@ namespace io {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int Open(OpenMeshType &m, const char * filename, int & mask,CallBackPos * cb = 0 ){
|
static int Open(OpenMeshType &m, const char * filename, int & mask,CallBackPos * /*cb*/ = 0 ){
|
||||||
|
|
||||||
typedef typename OpenMeshType::VertexType VertexType;
|
typedef typename OpenMeshType::VertexType VertexType;
|
||||||
typedef typename OpenMeshType::FaceType FaceType;
|
typedef typename OpenMeshType::FaceType FaceType;
|
||||||
|
@ -661,7 +661,7 @@ namespace io {
|
||||||
m.vert.resize(vertSize);
|
m.vert.resize(vertSize);
|
||||||
|
|
||||||
|
|
||||||
int read = 0;
|
size_t read = 0;
|
||||||
/* load the vertices */
|
/* load the vertices */
|
||||||
if(vertSize>0){
|
if(vertSize>0){
|
||||||
read=fread((void*)& m.vert[0],sizeof(VertexType),vertSize,F());
|
read=fread((void*)& m.vert[0],sizeof(VertexType),vertSize,F());
|
||||||
|
@ -688,7 +688,7 @@ namespace io {
|
||||||
|
|
||||||
ReadString(F(),_trash); ReadInt(F(),n);
|
ReadString(F(),_trash); ReadInt(F(),n);
|
||||||
|
|
||||||
for(int ia = 0 ; ia < n; ++ia){
|
for(size_t ia = 0 ; ia < n; ++ia){
|
||||||
ReadString(F(),_trash); ReadString(F(),_string);
|
ReadString(F(),_trash); ReadString(F(),_string);
|
||||||
ReadString(F(),_trash); ReadInt(F(),sz);
|
ReadString(F(),_trash); ReadInt(F(),sz);
|
||||||
|
|
||||||
|
@ -700,7 +700,7 @@ namespace io {
|
||||||
|
|
||||||
/* load the per face attributes */
|
/* load the per face attributes */
|
||||||
ReadString(F(),_trash); ReadInt(F(),n);
|
ReadString(F(),_trash); ReadInt(F(),n);
|
||||||
for(int ia = 0 ; ia < n; ++ia){
|
for(size_t ia = 0 ; ia < n; ++ia){
|
||||||
ReadString(F(),_trash); ReadString(F(),_string);
|
ReadString(F(),_trash); ReadString(F(),_string);
|
||||||
ReadString(F(),_trash); ReadInt(F(),sz);
|
ReadString(F(),_trash); ReadInt(F(),sz);
|
||||||
void * data = Malloc(sz*m.face.size());
|
void * data = Malloc(sz*m.face.size());
|
||||||
|
|
Loading…
Reference in New Issue