Blender V4.3
GeometryExporter Class Reference

#include <GeometryExporter.h>

Inherits COLLADASW::LibraryGeometries.

Public Member Functions

 GeometryExporter (BlenderContext &blender_context, COLLADASW::StreamWriter *sw, BCExportSettings &export_settings)
 
void exportGeom ()
 
void operator() (Object *ob)
 
void createLooseEdgeList (Object *ob, Mesh *mesh, std::string &geom_id)
 
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)
 
void createVertsSource (std::string geom_id, Mesh *mesh)
 
void createVertexColorSource (std::string geom_id, Mesh *mesh)
 
std::string makeTexcoordSourceId (std::string &geom_id, int layer_index, bool is_single_layer)
 
void createTexcoordsSource (std::string geom_id, Mesh *mesh)
 
void createNormalsSource (std::string geom_id, Mesh *mesh, std::vector< Normal > &nor)
 
void create_normals (std::vector< Normal > &nor, std::vector< BCPolygonNormalsIndices > &polygons_normals, Mesh *mesh)
 
std::string getIdBySemantics (std::string geom_id, COLLADASW::InputSemantic::Semantics type, std::string other_suffix="")
 
std::string makeVertexColorSourceId (std::string &geom_id, const char *layer_name)
 
COLLADASW::URI getUrlBySemantics (std::string geom_id, COLLADASW::InputSemantic::Semantics type, std::string other_suffix="")
 
COLLADASW::URI makeUrl (std::string id)
 
void export_key_mesh (Object *ob, Mesh *mesh, KeyBlock *kb)
 

Detailed Description

Definition at line 41 of file GeometryExporter.h.

Constructor & Destructor Documentation

◆ GeometryExporter()

GeometryExporter::GeometryExporter ( BlenderContext & blender_context,
COLLADASW::StreamWriter * sw,
BCExportSettings & export_settings )
inline

Definition at line 48 of file GeometryExporter.h.

Member Function Documentation

◆ create_mesh_primitive_list()

void GeometryExporter::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 )

◆ create_normals()

void GeometryExporter::create_normals ( std::vector< Normal > & nor,
std::vector< BCPolygonNormalsIndices > & polygons_normals,
Mesh * mesh )

◆ createLooseEdgeList()

void GeometryExporter::createLooseEdgeList ( Object * ob,
Mesh * mesh,
std::string & geom_id )

◆ createNormalsSource()

void GeometryExporter::createNormalsSource ( std::string geom_id,
Mesh * mesh,
std::vector< Normal > & nor )

Creates <source> for normals.

Definition at line 587 of file GeometryExporter.cpp.

References bc_add_global_transform(), getIdBySemantics(), nor, Normal::x, Normal::y, and Normal::z.

Referenced by export_key_mesh(), and operator()().

◆ createTexcoordsSource()

void GeometryExporter::createTexcoordsSource ( std::string geom_id,
Mesh * mesh )

◆ createVertexColorSource()

void GeometryExporter::createVertexColorSource ( std::string geom_id,
Mesh * mesh )

◆ createVertsSource()

void GeometryExporter::createVertsSource ( std::string geom_id,
Mesh * mesh )

Creates <source> for positions.

Definition at line 443 of file GeometryExporter.cpp.

References bc_add_global_transform(), copy_v3_v3(), and getIdBySemantics().

Referenced by export_key_mesh(), and operator()().

◆ export_key_mesh()

◆ exportGeom()

void GeometryExporter::exportGeom ( )

◆ getIdBySemantics()

std::string GeometryExporter::getIdBySemantics ( std::string geom_id,
COLLADASW::InputSemantic::Semantics type,
std::string other_suffix = "" )

◆ getUrlBySemantics()

COLLADASW::URI GeometryExporter::getUrlBySemantics ( std::string geom_id,
COLLADASW::InputSemantic::Semantics type,
std::string other_suffix = "" )

◆ makeTexcoordSourceId()

std::string GeometryExporter::makeTexcoordSourceId ( std::string & geom_id,
int layer_index,
bool is_single_layer )

Definition at line 526 of file GeometryExporter.cpp.

References getIdBySemantics(), and SNPRINTF.

Referenced by create_mesh_primitive_list(), and createTexcoordsSource().

◆ makeUrl()

COLLADASW::URI GeometryExporter::makeUrl ( std::string id)

Definition at line 703 of file GeometryExporter.cpp.

Referenced by create_mesh_primitive_list().

◆ makeVertexColorSourceId()

std::string GeometryExporter::makeVertexColorSourceId ( std::string & geom_id,
const char * layer_name )

Definition at line 317 of file GeometryExporter.cpp.

References getIdBySemantics(), and result.

Referenced by create_mesh_primitive_list(), and createVertexColorSource().

◆ operator()()


The documentation for this class was generated from the following files: