50 #ifndef __BASEEXPORTER_HH__
51 #define __BASEEXPORTER_HH__
61 #include <OpenMesh/Core/System/config.h>
62 #include <OpenMesh/Core/Geometry/VectorT.hh>
63 #include <OpenMesh/Core/Mesh/BaseKernel.hh>
104 std::vector<VertexHandle>& _vhandles)
const=0;
105 virtual Vec3f normal(
FaceHandle _fh)
const = 0;
106 virtual Vec3uc color (
FaceHandle _fh)
const = 0;
107 virtual Vec4uc colorA(
FaceHandle _fh)
const = 0;
108 virtual Vec3ui colori(
FaceHandle _fh)
const = 0;
109 virtual Vec4ui colorAi(
FaceHandle _fh)
const = 0;
110 virtual Vec3f colorf(
FaceHandle _fh)
const = 0;
111 virtual Vec4f colorAf(
FaceHandle _fh)
const = 0;
114 virtual Vec3uc color(
EdgeHandle _eh)
const = 0;
115 virtual Vec4uc colorA(
EdgeHandle _eh)
const = 0;
116 virtual Vec3ui colori(
EdgeHandle _eh)
const = 0;
117 virtual Vec4ui colorAi(
EdgeHandle _eh)
const = 0;
118 virtual Vec3f colorf(
EdgeHandle _eh)
const = 0;
119 virtual Vec4f colorAf(
EdgeHandle _eh)
const = 0;
122 virtual const BaseKernel* kernel() {
return 0; }
126 virtual size_t n_vertices()
const = 0;
127 virtual size_t n_faces()
const = 0;
128 virtual size_t n_edges()
const = 0;
132 virtual bool is_triangle_mesh()
const {
return false; }
133 virtual bool has_vertex_normals()
const {
return false; }
134 virtual bool has_vertex_colors()
const {
return false; }
135 virtual bool has_vertex_texcoords()
const {
return false; }
136 virtual bool has_edge_colors()
const {
return false; }
137 virtual bool has_face_normals()
const {
return false; }
138 virtual bool has_face_colors()
const {
return false; }
Handle for a edge entity.
Definition: Handles.hh:128
Handle for a face entity.
Definition: Handles.hh:135
Base class for exporter modules.
Definition: BaseExporter.hh:82
This class provides the basic property management like adding/removing properties and access to prope...
Definition: BaseKernel.hh:91
Handle for a vertex entity.
Definition: Handles.hh:114