00001 #ifndef _MESH_MATERIAL_MAPPING_H_ 00002 #define _MESH_MATERIAL_MAPPING_H_ 00003 00004 #include "cglib/object.h" 00005 #include <vector> 00006 00008 class MeshMaterialMapping : public Object 00009 { 00010 public: 00012 MeshMaterialMapping (); 00013 00015 virtual ~MeshMaterialMapping (); 00016 00018 00022 int get_face_count() const; 00023 00025 int get_face_material_index(int face_index) const; 00026 00028 00037 void append_face_material_index(int material_index); 00038 00040 virtual void accept(Visitor *visitor); 00041 00042 private: 00043 std::vector<int> mappings; 00044 }; 00045 00046 #endif /* _MESH_MATERIAL_MAPPING_H_ */