From 99735eeb1ed558a919b24aa6ac0e35d2a66d9ccd Mon Sep 17 00:00:00 2001 From: maxcorsini Date: Mon, 6 Feb 2006 13:11:01 +0000 Subject: [PATCH] Renamed UnexpectedEOF as InvalidFile and added UnsupportedFormat and ErrorNotTriangularFace (by Laurent Saboret) --- wrap/io_trimesh/import_off.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/wrap/io_trimesh/import_off.h b/wrap/io_trimesh/import_off.h index 42c0323f..740ab0c6 100644 --- a/wrap/io_trimesh/import_off.h +++ b/wrap/io_trimesh/import_off.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.11 2006/01/30 15:02:50 cignoni +Added mask filling in open + Revision 1.10 2006/01/10 13:20:42 cignoni Changed ply::PlyMask to io::Mask @@ -90,18 +93,19 @@ namespace vcg /*! * Standard call for knowing the meaning of an error code * \param message_code The code returned by Open - * \return The string describing the error code + * \return The string describing the error code */ static const char* ErrorMsg(int message_code) { - static const char* error_msg[3] = + static const char* error_msg[] = { - "No errors", "Can't open file", "Premature End of file", + "No errors", "Can't open file", "Invalid file", + "Unsupported format", "Face with more than 3 vertices" }; - if(message_code>2 || message_code<0) + if(message_code>4 || message_code<0) return "Unknown error"; - else + else return error_msg[message_code]; };