- added the functionality to read meshes from istreams with the STLReader
git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@704 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -4,10 +4,10 @@
|
||||
* Copyright (C) 2001-2011 by Computer Graphics Group, RWTH Aachen *
|
||||
* www.openmesh.org *
|
||||
* *
|
||||
*---------------------------------------------------------------------------*
|
||||
*---------------------------------------------------------------------------*
|
||||
* This file is part of OpenMesh. *
|
||||
* *
|
||||
* OpenMesh is free software: you can redistribute it and/or modify *
|
||||
* OpenMesh is free software: you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU Lesser General Public License as *
|
||||
* published by the Free Software Foundation, either version 3 of *
|
||||
* the License, or (at your option) any later version with the *
|
||||
@@ -30,10 +30,10 @@
|
||||
* License along with OpenMesh. If not, *
|
||||
* see <http://www.gnu.org/licenses/>. *
|
||||
* *
|
||||
\*===========================================================================*/
|
||||
\*===========================================================================*/
|
||||
|
||||
/*===========================================================================*\
|
||||
* *
|
||||
* *
|
||||
* $Revision$ *
|
||||
* $Date$ *
|
||||
* *
|
||||
@@ -96,6 +96,22 @@ float read_float(FILE* _in, bool _swap=false);
|
||||
\c _swap is true */
|
||||
double read_double(FILE* _in, bool _swap=false);
|
||||
|
||||
/** Binary read a \c short from \c _is and perform byte swapping if
|
||||
\c _swap is true */
|
||||
short int read_short(std::istream& _in, bool _swap=false);
|
||||
|
||||
/** Binary read an \c int from \c _is and perform byte swapping if
|
||||
\c _swap is true */
|
||||
int read_int(std::istream& _in, bool _swap=false);
|
||||
|
||||
/** Binary read a \c float from \c _is and perform byte swapping if
|
||||
\c _swap is true */
|
||||
float read_float(std::istream& _in, bool _swap=false);
|
||||
|
||||
/** Binary read a \c double from \c _is and perform byte swapping if
|
||||
\c _swap is true */
|
||||
double read_double(std::istream& _in, bool _swap=false);
|
||||
|
||||
|
||||
/** Binary write a \c short to \c _os and perform byte swapping if
|
||||
\c _swap is true */
|
||||
@@ -113,7 +129,7 @@ void write_float(float _f, FILE* _out, bool _swap=false);
|
||||
\c _swap is true */
|
||||
void write_double(double _d, FILE* _out, bool _swap=false);
|
||||
|
||||
|
||||
|
||||
//@}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user