57 #ifndef __BASEIMPORTER_HH__ 58 #define __BASEIMPORTER_HH__ 69 #include <OpenMesh/Core/Geometry/VectorT.hh> 70 #include <OpenMesh/Core/Mesh/BaseKernel.hh> 103 typedef std::vector<VertexHandle> VHandles;
104 virtual FaceHandle add_face(
const VHandles& _indices) = 0;
107 virtual void add_face_texcoords(
FaceHandle _fh,
VertexHandle _vh,
const std::vector<Vec2f>& _face_texcoords) = 0;
110 virtual void add_face_texcoords(
FaceHandle _fh,
VertexHandle _vh,
const std::vector<Vec3f>& _face_texcoords) = 0;
113 virtual void set_face_texindex(
FaceHandle _fh,
int _texId ) = 0;
174 virtual void add_texture_information(
int _id , std::string _name ) = 0;
179 virtual bool is_triangle_mesh()
const {
return false; }
182 virtual void reserve(
unsigned int ,
187 virtual size_t n_vertices()
const = 0;
188 virtual size_t n_faces()
const = 0;
189 virtual size_t n_edges()
const = 0;
193 virtual void prepare() {}
196 virtual void finish() {}
Handle for a edge entity.
Handle for a halfedge entity.
Handle for a vertex entity.
Handle for a face entity.