Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef STLIO_H_
00009 #define STLIO_H_
00010
00011 #include <string>
00012 using std::string;
00013
00014 #include "Vertex.hpp"
00015 #include "Normal.hpp"
00016
00017 namespace lssr
00018 {
00019
00020 template class Normal<float>;
00021
00022
00023
00024
00025
00027 template<typename CoordType, typename IndexType>
00028 class StlIO
00029 {
00030 public:
00031 StlIO();
00032
00033 void write(string filename);
00034 void setVertexArray(CoordType* array, size_t count);
00035 void setNormalArray(CoordType* array, size_t count);
00036 void setIndexArray(IndexType* array, size_t count);
00037
00038 private:
00039 CoordType* m_vertices;
00040 CoordType* m_normals;
00041 IndexType* m_indices;
00042
00043 size_t m_faceCount;
00044 size_t m_vertexCount;
00045
00046 };
00047
00048
00049 }
00050
00051 #include "StlIO.tcc"
00052
00053 #endif