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
VectorT< float, 2 > Vec2f
2-float vector
Definition Vector11T.hh:752
VectorT< unsigned char, 3 > Vec3uc
3-byte unsigned vector
Definition Vector11T.hh:759
VectorT< float, 4 > Vec4f
4-float vector
Definition Vector11T.hh:788
VectorT< unsigned char, 4 > Vec4uc
4-byte unsigned vector
Definition Vector11T.hh:778
VectorT< float, 3 > Vec3f
3-float vector
Definition Vector11T.hh:769
This namespace contains functions for reading and writing polygonal meshes and a list of supported fi...
Base class for importer modules.
Definition BaseImporter.hh:89
This class provides low-level property management like adding/removing properties and access to prope...
Definition BaseKernel.hh:103
Handle for a vertex entity.
Definition Handles.hh:126
Handle for a halfedge entity.
Definition Handles.hh:133
Handle for a edge entity.
Definition Handles.hh:140
Handle for a face entity.
Definition Handles.hh:147