correct management of point only files

This commit is contained in:
Paolo Cignoni 2007-10-17 09:49:50 +00:00
parent 6ba9867dca
commit dcdfdb1305
2 changed files with 11 additions and 3 deletions

View File

@ -25,6 +25,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.9 2007/03/12 16:40:16 tarini
Texture coord name change! "TCoord" and "Texture" are BAD. "TexCoord" is GOOD.
Revision 1.8 2007/03/08 11:27:52 ganovelli
added include to tcoord2
@ -176,7 +179,8 @@ namespace io {
static int SaveASCII(SaveMeshType &m, const char * filename, int mask, CallBackPos *cb=0)
{
if(m.vn == 0) return E_NOTVEXTEXVALID;
if(m.fn == 0) return E_NOTFACESVALID;
// Commented out this control. You should be allowed to save a point cloud.
// if(m.fn == 0) return E_NOTFACESVALID;
int current = 0;
int max = m.vn+ m.fn;

View File

@ -25,6 +25,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.16 2007/07/20 14:49:46 cignoni
Added in load mask the face color bit when there is a generic material used
Revision 1.15 2007/07/05 14:47:04 cignoni
Added face coloring when there is a texture (and therefore a material)
@ -302,8 +305,9 @@ static int Open( OpenMeshType &m, const char * filename, Info &oi)
if (oi.numVertices == 0)
return E_NO_VERTEX;
if (oi.numFaces == 0)
return E_NO_FACE;
// Commented out this test. You should be allowed to load point clouds.
//if (oi.numFaces == 0)
// return E_NO_FACE;
std::ifstream stream(filename);
if (stream.fail())