Changeset View
Changeset View
Standalone View
Standalone View
source/blender/collada/MeshImporter.h
| Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
| class MeshImporter : public MeshImporterBase | class MeshImporter : public MeshImporterBase | ||||
| { | { | ||||
| private: | private: | ||||
| UnitConverter *unitconverter; | UnitConverter *unitconverter; | ||||
| Scene *scene; | Scene *scene; | ||||
| ViewLayer *view_layer; | ViewLayer *view_layer; | ||||
| WorkSpace *workspace; | |||||
| ArmatureImporter *armature_importer; | ArmatureImporter *armature_importer; | ||||
| std::map<std::string, std::string> mesh_geom_map; // needed for correct shape key naming | std::map<std::string, std::string> mesh_geom_map; // needed for correct shape key naming | ||||
| std::map<COLLADAFW::UniqueId, Mesh*> uid_mesh_map; // geometry unique id-to-mesh map | std::map<COLLADAFW::UniqueId, Mesh*> uid_mesh_map; // geometry unique id-to-mesh map | ||||
| std::map<COLLADAFW::UniqueId, Object*> uid_object_map; // geom uid-to-object | std::map<COLLADAFW::UniqueId, Object*> uid_object_map; // geom uid-to-object | ||||
| std::vector<Object*> imported_objects; // list of imported objects | std::vector<Object*> imported_objects; // list of imported objects | ||||
| ▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | #endif | ||||
| void get_vector(float v[3], COLLADAFW::MeshVertexData& arr, int i, int stride); | void get_vector(float v[3], COLLADAFW::MeshVertexData& arr, int i, int stride); | ||||
| bool is_flat_face(unsigned int *nind, COLLADAFW::MeshVertexData& nor, int count); | bool is_flat_face(unsigned int *nind, COLLADAFW::MeshVertexData& nor, int count); | ||||
| std::vector<Object *> get_all_users_of(Mesh *reference_mesh); | std::vector<Object *> get_all_users_of(Mesh *reference_mesh); | ||||
| public: | public: | ||||
| MeshImporter(UnitConverter *unitconv, ArmatureImporter *arm, Scene *sce, ViewLayer *view_layer); | MeshImporter(UnitConverter *unitconv, ArmatureImporter *arm, Scene *sce, ViewLayer *view_layer, WorkSpace *ws); | ||||
| virtual Object *get_object_by_geom_uid(const COLLADAFW::UniqueId& geom_uid); | virtual Object *get_object_by_geom_uid(const COLLADAFW::UniqueId& geom_uid); | ||||
| virtual Mesh *get_mesh_by_geom_uid(const COLLADAFW::UniqueId& geom_uid); | virtual Mesh *get_mesh_by_geom_uid(const COLLADAFW::UniqueId& geom_uid); | ||||
| MTex *assign_textures_to_uvlayer(COLLADAFW::TextureCoordinateBinding &ctexture, | MTex *assign_textures_to_uvlayer(COLLADAFW::TextureCoordinateBinding &ctexture, | ||||
| Mesh *me, TexIndexTextureArrayMap& texindex_texarray_map, | Mesh *me, TexIndexTextureArrayMap& texindex_texarray_map, | ||||
| MTex *color_texture); | MTex *color_texture); | ||||
| Show All 21 Lines | |||||