correct management of point only files
This commit is contained in:
parent
6ba9867dca
commit
dcdfdb1305
|
|
@ -25,6 +25,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.8 2007/03/08 11:27:52 ganovelli
|
||||||
added include to tcoord2
|
added include to tcoord2
|
||||||
|
|
||||||
|
|
@ -176,7 +179,8 @@ namespace io {
|
||||||
static int SaveASCII(SaveMeshType &m, const char * filename, int mask, CallBackPos *cb=0)
|
static int SaveASCII(SaveMeshType &m, const char * filename, int mask, CallBackPos *cb=0)
|
||||||
{
|
{
|
||||||
if(m.vn == 0) return E_NOTVEXTEXVALID;
|
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 current = 0;
|
||||||
int max = m.vn+ m.fn;
|
int max = m.vn+ m.fn;
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$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
|
Revision 1.15 2007/07/05 14:47:04 cignoni
|
||||||
Added face coloring when there is a texture (and therefore a material)
|
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)
|
if (oi.numVertices == 0)
|
||||||
return E_NO_VERTEX;
|
return E_NO_VERTEX;
|
||||||
|
|
||||||
if (oi.numFaces == 0)
|
// Commented out this test. You should be allowed to load point clouds.
|
||||||
return E_NO_FACE;
|
//if (oi.numFaces == 0)
|
||||||
|
// return E_NO_FACE;
|
||||||
|
|
||||||
std::ifstream stream(filename);
|
std::ifstream stream(filename);
|
||||||
if (stream.fail())
|
if (stream.fail())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue