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>
104 typedef std::vector<VertexHandle> VHandles;
105 virtual FaceHandle add_face(
const VHandles& _indices) = 0;
111 virtual void add_face_texcoords(
FaceHandle _fh,
VertexHandle _vh,
const std::vector<Vec2f>& _face_texcoords) = 0;
114 virtual void add_face_texcoords(
FaceHandle _fh,
VertexHandle _vh,
const std::vector<Vec3f>& _face_texcoords) = 0;
117 virtual void set_face_texindex(
FaceHandle _fh,
int _texId ) = 0;
156 virtual void request_face_texcoords2D() = 0;
208 virtual void add_texture_information(
int _id , std::string _name ) = 0;
211 virtual BaseKernel* kernel() {
return nullptr; }
213 virtual bool is_triangle_mesh()
const {
return false; }
216 virtual void reserve(
unsigned int ,
221 virtual size_t n_vertices()
const = 0;
222 virtual size_t n_faces()
const = 0;
223 virtual size_t n_edges()
const = 0;
227 virtual void prepare() {}
230 virtual void finish() {}
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
VectorT< float, 3 > Vec3f
3-float vector
Definition: Vector11T.hh:851
Base class for importer modules.
Definition: BaseImporter.hh:84
This class provides low-level property management like adding/removing properties and access to prope...
Definition: BaseKernel.hh:98
Handle for a vertex entity.
Definition: Handles.hh:121
Handle for a halfedge entity.
Definition: Handles.hh:128
Handle for a edge entity.
Definition: Handles.hh:135
Handle for a face entity.
Definition: Handles.hh:142
Add status information to a base class.
Definition: Status.hh:95