gz/common/ColladaExporter.hh
Go to the documentation of this file.
Class used to export Collada mesh files.
Definition: gz/common/ColladaExporter.hh:74
void Export(const Mesh *_mesh, const std::string &_filename, bool _exportTextures, const std::vector< math::Matrix4d > &_submeshToMatrix, const std::vector< ColladaLight > &_lights)
Export a mesh to a file.
void Export(const Mesh *_mesh, const std::string &_filename, bool _exportTextures, const std::vector< math::Matrix4d > &_submeshToMatrix)
Export a mesh to a file.
virtual void Export(const Mesh *_mesh, const std::string &_filename, bool _exportTextures=false)
Export a mesh to a file.
Base class for exporting meshes.
Definition: gz/common/MeshExporter.hh:33
Forward declarations for the common classes.
This struct contains light data specifically for collada export Defaults set based on collada 1....
Definition: gz/common/ColladaExporter.hh:40
double constantAttenuation
Constant attentuation.
Definition: gz/common/ColladaExporter.hh:57
double falloffExponent
Fallof exponent.
Definition: gz/common/ColladaExporter.hh:69
std::string type
Type of the light. Either "point", "directional" or "spot".
Definition: gz/common/ColladaExporter.hh:45
double linearAttenuation
Linear attentuation.
Definition: gz/common/ColladaExporter.hh:60
double falloffAngleDeg
Falloff angle in degrees.
Definition: gz/common/ColladaExporter.hh:66
std::string name
Name of the light.
Definition: gz/common/ColladaExporter.hh:42
math::Vector3d direction
Light direction (directional/spot lights only)
Definition: gz/common/ColladaExporter.hh:48
double quadraticAttenuation
Quadratic attentuation.
Definition: gz/common/ColladaExporter.hh:63
math::Color diffuse
Light diffuse color.
Definition: gz/common/ColladaExporter.hh:54
math::Vector3d position
Light position (non directional lights only)
Definition: gz/common/ColladaExporter.hh:51