15#include "COLLADASWInputList.h"
16#include "COLLADASWLibraryGeometries.h"
17#include "COLLADASWStreamWriter.h"
42 unsigned int v1,
v2, v3, v4;
48 COLLADASW::StreamWriter *sw,
49 BCExportSettings &export_settings)
50 : COLLADASW::LibraryGeometries(sw),
51 blender_context(blender_context),
52 export_settings(export_settings)
69 std::vector<BCPolygonNormalsIndices> &norind);
85 std::vector<BCPolygonNormalsIndices> &polygons_normals,
89 COLLADASW::InputSemantic::Semantics type,
90 std::string other_suffix =
"");
94 COLLADASW::InputSemantic::Semantics type,
95 std::string other_suffix =
"");
97 COLLADASW::URI
makeUrl(std::string
id);
102 std::set<std::string> exportedGeometry;
104 BCExportSettings &export_settings;
112 template<
class Functor>
116 for (node = export_set; node; node = node->
next) {
Object is a sort of wrapper for general info.
bool operator<(const Normal &, const Normal &)
ATTR_WARN_UNUSED_RESULT const BMVert * v2
void createVertsSource(std::string geom_id, Mesh *mesh)
GeometryExporter(BlenderContext &blender_context, COLLADASW::StreamWriter *sw, BCExportSettings &export_settings)
void createLooseEdgeList(Object *ob, Mesh *mesh, std::string &geom_id)
void createTexcoordsSource(std::string geom_id, Mesh *mesh)
COLLADASW::URI getUrlBySemantics(std::string geom_id, COLLADASW::InputSemantic::Semantics type, std::string other_suffix="")
COLLADASW::URI makeUrl(std::string id)
std::string makeTexcoordSourceId(std::string &geom_id, int layer_index, bool is_single_layer)
void createNormalsSource(std::string geom_id, Mesh *mesh, std::vector< Normal > &nor)
void operator()(Object *ob)
void create_mesh_primitive_list(short material_index, bool has_uvs, bool has_color, Object *ob, Mesh *mesh, std::string &geom_id, std::vector< BCPolygonNormalsIndices > &norind)
std::string getIdBySemantics(std::string geom_id, COLLADASW::InputSemantic::Semantics type, std::string other_suffix="")
void create_normals(std::vector< Normal > &nor, std::vector< BCPolygonNormalsIndices > &polygons_normals, Mesh *mesh)
std::string makeVertexColorSourceId(std::string &geom_id, const char *layer_name)
void export_key_mesh(Object *ob, Mesh *mesh, KeyBlock *kb)
void createVertexColorSource(std::string geom_id, Mesh *mesh)
friend bool operator<(const Normal &, const Normal &)
void forEachMeshObjectInExportSet(Scene *sce, Functor &f, LinkNode *export_set)