52 #ifndef __BASEIMPORTER_HH__ 53 #define __BASEIMPORTER_HH__ 63 #include <OpenMesh/Core/System/config.h> 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 halfedge entity.
Definition: Handles.hh:127
This class provides low-level property management like adding/removing properties and access to prope...
Definition: BaseKernel.hh:97
Add status information to a base class.
Definition: Status.hh:94
Handle for a vertex entity.
Definition: Handles.hh:120
Handle for a edge entity.
Definition: Handles.hh:134
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
Handle for a face entity.
Definition: Handles.hh:141
Base class for importer modules.
Definition: BaseImporter.hh:83