Added mask filling in open
This commit is contained in:
parent
b32218acdc
commit
96ce1e8a4a
|
@ -24,6 +24,9 @@
|
|||
History
|
||||
|
||||
$Log: not supported by cvs2svn $
|
||||
Revision 1.10 2006/01/10 13:20:42 cignoni
|
||||
Changed ply::PlyMask to io::Mask
|
||||
|
||||
Revision 1.9 2005/12/01 00:58:56 cignoni
|
||||
Added and removed typenames for gcc compiling...
|
||||
|
||||
|
@ -328,7 +331,8 @@ namespace vcg
|
|||
} //end switch
|
||||
} // end if (isColorDefined)
|
||||
}
|
||||
|
||||
loadmask = Mask::IOM_VERTCOORD | Mask::IOM_FACEINDEX;
|
||||
if(isColorDefined) loadmask |= Mask::IOM_FACECOLOR;
|
||||
return NoError;
|
||||
} // end Open
|
||||
|
||||
|
|
|
@ -25,6 +25,9 @@
|
|||
History
|
||||
|
||||
$Log: not supported by cvs2svn $
|
||||
Revision 1.10 2006/01/04 16:14:43 cignoni
|
||||
Added callback managment on loading of binary stl
|
||||
|
||||
Revision 1.9 2005/09/15 09:29:45 m_di_benedetto
|
||||
#included missing <wrap/callback.h> and <vcg/complex/trimesh/allocate.h>
|
||||
|
||||
|
@ -109,6 +112,12 @@ static const char *ErrorMsg(int error)
|
|||
else return stl_error_msg[error];
|
||||
};
|
||||
|
||||
static int Open(OpenMeshType &mesh, const char *filename, int &loadmask, CallBackPos *cb=0)
|
||||
{
|
||||
loadmask = Mask::IOM_VERTCOORD | Mask::IOM_FACEINDEX;
|
||||
return Open(mesh,filename,cb);
|
||||
}
|
||||
|
||||
static int Open( OpenMeshType &m, const char * filename, CallBackPos *cb=0)
|
||||
{
|
||||
FILE *fp;
|
||||
|
|
Loading…
Reference in New Issue