closes #1
refs !1 *changed the static variables to be common variables. If one opens a lot of files, using thread local could be an alternative as long as the compiler supports it.
This commit is contained in:
@@ -172,7 +172,7 @@ read_material(std::fstream& _in)
|
|||||||
std::string keyWrd;
|
std::string keyWrd;
|
||||||
std::string textureName;
|
std::string textureName;
|
||||||
|
|
||||||
static std::stringstream stream;
|
std::stringstream stream;
|
||||||
|
|
||||||
std::string key;
|
std::string key;
|
||||||
Material mat;
|
Material mat;
|
||||||
@@ -308,7 +308,7 @@ read(std::istream& _in, BaseImporter& _bi, Options& _opt)
|
|||||||
|
|
||||||
std::string matname;
|
std::string matname;
|
||||||
|
|
||||||
static std::stringstream stream, lineData, tmp;
|
std::stringstream stream, lineData, tmp;
|
||||||
|
|
||||||
|
|
||||||
// Options supplied by the user
|
// Options supplied by the user
|
||||||
|
|||||||
@@ -192,8 +192,8 @@ _OFFReader_::read_ascii(std::istream& _in, BaseImporter& _bi, Options& _opt) con
|
|||||||
OpenMesh::Vec4f c4f;
|
OpenMesh::Vec4f c4f;
|
||||||
BaseImporter::VHandles vhandles;
|
BaseImporter::VHandles vhandles;
|
||||||
VertexHandle vh;
|
VertexHandle vh;
|
||||||
static std::stringstream stream;
|
std::stringstream stream;
|
||||||
static std::string trash;
|
std::string trash;
|
||||||
|
|
||||||
// read header line
|
// read header line
|
||||||
std::string header;
|
std::string header;
|
||||||
|
|||||||
@@ -249,8 +249,8 @@ read_stla(std::istream& _in, BaseImporter& _bi, Options& _opt) const
|
|||||||
|
|
||||||
std::string line;
|
std::string line;
|
||||||
|
|
||||||
static std::string garbage;
|
std::string garbage;
|
||||||
static std::stringstream strstream;
|
std::stringstream strstream;
|
||||||
|
|
||||||
bool facet_normal(false);
|
bool facet_normal(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user