52 #ifndef __BASEIMPORTER_HH__ 53 #define __BASEIMPORTER_HH__ 64 #include <OpenMesh/Core/Geometry/VectorT.hh> 65 #include <OpenMesh/Core/Mesh/BaseKernel.hh> 101 typedef std::vector<VertexHandle> VHandles;
102 virtual FaceHandle add_face(
const VHandles& _indices) = 0;
108 virtual void add_face_texcoords(
FaceHandle _fh,
VertexHandle _vh,
const std::vector<Vec2f>& _face_texcoords) = 0;
111 virtual void add_face_texcoords(
FaceHandle _fh,
VertexHandle _vh,
const std::vector<Vec3f>& _face_texcoords) = 0;
114 virtual void set_face_texindex(
FaceHandle _fh,
int _texId ) = 0;
196 virtual void add_texture_information(
int _id , std::string _name ) = 0;
201 virtual bool is_triangle_mesh()
const {
return false; }
204 virtual void reserve(
unsigned int ,
209 virtual size_t n_vertices()
const = 0;
210 virtual size_t n_faces()
const = 0;
211 virtual size_t n_edges()
const = 0;
215 virtual void prepare() {}
218 virtual void finish() {}
Handle for a vertex entity.
Handle for a halfedge entity.
Handle for a face entity.
Handle for a edge entity.