57 #ifndef __BASEIMPORTER_HH__ 58 #define __BASEIMPORTER_HH__ 68 #include <OpenMesh/Core/System/config.h> 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() {}
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
Handle for a halfedge entity.
Definition: Handles.hh:132
This class provides low-level property management like adding/removing properties and access to prope...
Definition: BaseKernel.hh:102
Handle for a face entity.
Definition: Handles.hh:146
Handle for a vertex entity.
Definition: Handles.hh:125
Base class for importer modules.
Definition: BaseImporter.hh:88
Handle for a edge entity.
Definition: Handles.hh:139