15#include "COLLADASWInputList.h"
16#include "COLLADASWLibraryGeometries.h"
17#include "COLLADASWStreamWriter.h"
43 unsigned int v1, v2, v3, v4;
49 COLLADASW::StreamWriter *sw,
50 BCExportSettings &export_settings)
51 : COLLADASW::LibraryGeometries(sw),
52 blender_context(blender_context),
53 export_settings(export_settings)
70 std::vector<BCPolygonNormalsIndices> &norind);
86 std::vector<BCPolygonNormalsIndices> &polygons_normals,
90 COLLADASW::InputSemantic::Semantics type,
91 std::string other_suffix =
"");
95 COLLADASW::InputSemantic::Semantics type,
96 std::string other_suffix =
"");
98 COLLADASW::URI
makeUrl(std::string
id);
103 std::set<std::string> exportedGeometry;
104 BlenderContext &blender_context;
105 BCExportSettings &export_settings;
113 template<
class Functor>
117 for (node = export_set;
node; node = node->
next) {
Object is a sort of wrapper for general info.
bool operator<(const Normal &, const Normal &)
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 &)
Frequency::GEOMETRY nor[]
void forEachMeshObjectInExportSet(Scene *sce, Functor &f, LinkNode *export_set)