#include <meshmodifier.h>
Inheritance diagram for sheep::MeshModifier:

Public Member Functions | |
| MeshModifier (IMeshBuilder &builder) | |
| virtual | ~MeshModifier () |
| void | ComputeSmoothedVertexNormals (sheep::Real smoothing_threshold_angle) |
| 'smoothing_threshold' is expressed in radians. | |
| void | OptimizeMesh (sheep::Real vertex_welding_threshold_dist, sheep::Real normal_welding_threshold_angle) |
| virtual IGeometryBuilder * | GeometryBuilder () |
| virtual IMaterialBuilder * | MaterialBuilder () |
| virtual void | BeginSubMesh (const std::string &name) |
| virtual void | EndSubMesh () |
| virtual FeatureId | AppendVertex (const Vector3 &v) |
| virtual FeatureId | AppendNormal (const Vector3 &vn) |
| virtual FeatureId | AppendTexCoord (const Vector2 &vt) |
| virtual FeatureId | AppendFace (int n, const FeatureId *v) |
| virtual void | SetFaceNormals (FeatureId face, int n, const FeatureId *vn) |
| virtual void | SetFaceTexCoords (FeatureId face, int n, const FeatureId *vt) |
| virtual void | SetMaterial (FeatureId material) |
| virtual FeatureId | BeginMaterial (const std::string &name) |
| virtual void | EndMaterial () |
| virtual void | SetAmbientColor (Real r, Real g, Real b) |
| virtual void | SetDiffuseColor (Real r, Real g, Real b) |
| virtual void | SetSpecularColor (Real r, Real g, Real b) |
| virtual void | SetTexture (int w, int h, const unsigned char *texels) |
| 24-bit RGB format. | |
Private Attributes | |
| sub_mesh * | m_sub_mesh |
| Current sub mesh being defined. | |
| IMeshBuilder & | m_builder |
| bool | m_compute_smoothed_vn |
| Vertex normals smoothing settings. | |
| sheep::Real | m_smoothing_threshold_angle |
| Expressed in radians. | |
| bool | m_optimize_mesh |
| Mesh optimization settings. | |
| sheep::Real | m_vertex_welding_threshold_dist |
| Expressed in distance units. | |
| sheep::Real | m_normal_welding_threshold_angle |
| Expressed in radians. | |
|
|
Definition at line 50 of file meshmodifier.cpp. References m_compute_smoothed_vn, and m_optimize_mesh. |
|
|
Definition at line 57 of file meshmodifier.cpp. |
|
||||||||||||
|
|
Reimplemented from sheep::IMeshBuilder::IGeometryBuilder. Definition at line 184 of file meshmodifier.cpp. References m_compute_smoothed_vn, sheep::MeshModifier::sub_mesh::m_normals, and m_sub_mesh. |
|
|
Reimplemented from sheep::IMeshBuilder::IGeometryBuilder. Definition at line 193 of file meshmodifier.cpp. References m_sub_mesh, and sheep::MeshModifier::sub_mesh::m_texcoords. |
|
|
Reimplemented from sheep::IMeshBuilder::IGeometryBuilder. Definition at line 178 of file meshmodifier.cpp. References m_sub_mesh, and sheep::MeshModifier::sub_mesh::m_vertices. |
|
|
Reimplemented from sheep::IMeshBuilder::IMaterialBuilder. Definition at line 249 of file meshmodifier.cpp. References m_builder, and sheep::IMeshBuilder::MaterialBuilder(). |
|
|
Reimplemented from sheep::IMeshBuilder::IGeometryBuilder. Definition at line 76 of file meshmodifier.cpp. References sheep::MeshModifier::sub_mesh::m_material, sheep::MeshModifier::sub_mesh::m_name, and m_sub_mesh. |
|
|
'smoothing_threshold' is expressed in radians.
Definition at line 37 of file meshmodifier.cpp. References m_compute_smoothed_vn, m_smoothing_threshold_angle, and sheep::Real. Referenced by toxic::SceneBuilder::mesh_builder(). |
|
|
Reimplemented from sheep::IMeshBuilder::IMaterialBuilder. Definition at line 253 of file meshmodifier.cpp. References m_builder, and sheep::IMeshBuilder::MaterialBuilder(). |
|
|
|
Implements sheep::IMeshBuilder. Definition at line 62 of file meshmodifier.cpp. References sheep::IMeshBuilder::GeometryBuilder(), and m_builder. |
|
|
Implements sheep::IMeshBuilder. Definition at line 68 of file meshmodifier.cpp. References m_builder, and sheep::IMeshBuilder::MaterialBuilder(). |
|
||||||||||||
|
'vertex_welding_threshold' is expressed in distance units. 'normal_welding_threshold' is expressed in radians. Definition at line 42 of file meshmodifier.cpp. References m_normal_welding_threshold_angle, m_optimize_mesh, m_vertex_welding_threshold_dist, and sheep::Real. Referenced by toxic::SceneBuilder::mesh_builder(). |
|
||||||||||||||||
|
Reimplemented from sheep::IMeshBuilder::IMaterialBuilder. Definition at line 257 of file meshmodifier.cpp. References m_builder, sheep::IMeshBuilder::MaterialBuilder(), and sheep::Real. |
|
||||||||||||||||
|
Reimplemented from sheep::IMeshBuilder::IMaterialBuilder. Definition at line 261 of file meshmodifier.cpp. References m_builder, sheep::IMeshBuilder::MaterialBuilder(), and sheep::Real. |
|
||||||||||||||||
|
Reimplemented from sheep::IMeshBuilder::IGeometryBuilder. Definition at line 217 of file meshmodifier.cpp. References m_compute_smoothed_vn, sheep::MeshModifier::sub_mesh::m_faces, sheep::MeshModifier::sub_mesh::face::m_n0, sheep::MeshModifier::sub_mesh::face::m_n1, sheep::MeshModifier::sub_mesh::face::m_n2, and m_sub_mesh. |
|
||||||||||||||||
|
Reimplemented from sheep::IMeshBuilder::IGeometryBuilder. Definition at line 231 of file meshmodifier.cpp. References sheep::MeshModifier::sub_mesh::m_faces, m_sub_mesh, sheep::MeshModifier::sub_mesh::face::m_t0, sheep::MeshModifier::sub_mesh::face::m_t1, and sheep::MeshModifier::sub_mesh::face::m_t2. |
|
|
Reimplemented from sheep::IMeshBuilder::IGeometryBuilder. Definition at line 243 of file meshmodifier.cpp. References sheep::MeshModifier::sub_mesh::m_material, and m_sub_mesh. |
|
||||||||||||||||
|
Reimplemented from sheep::IMeshBuilder::IMaterialBuilder. Definition at line 265 of file meshmodifier.cpp. References m_builder, sheep::IMeshBuilder::MaterialBuilder(), and sheep::Real. |
|
||||||||||||||||
|
24-bit RGB format. < 24-bit RGB format. Reimplemented from sheep::IMeshBuilder::IMaterialBuilder. Definition at line 269 of file meshmodifier.cpp. References m_builder, and sheep::IMeshBuilder::MaterialBuilder(). |
|
|
Definition at line 111 of file meshmodifier.h. Referenced by BeginMaterial(), EndMaterial(), EndSubMesh(), GeometryBuilder(), MaterialBuilder(), SetAmbientColor(), SetDiffuseColor(), SetSpecularColor(), and SetTexture(). |
|
|
Vertex normals smoothing settings.
Definition at line 114 of file meshmodifier.h. Referenced by AppendNormal(), ComputeSmoothedVertexNormals(), EndSubMesh(), MeshModifier(), and SetFaceNormals(). |
|
|
Expressed in radians.
Definition at line 120 of file meshmodifier.h. Referenced by EndSubMesh(), and OptimizeMesh(). |
|
|
Mesh optimization settings.
Definition at line 118 of file meshmodifier.h. Referenced by EndSubMesh(), MeshModifier(), and OptimizeMesh(). |
|
|
Expressed in radians.
Definition at line 115 of file meshmodifier.h. Referenced by ComputeSmoothedVertexNormals(), and EndSubMesh(). |
|
|
Current sub mesh being defined.
Definition at line 109 of file meshmodifier.h. Referenced by AppendFace(), AppendNormal(), AppendTexCoord(), AppendVertex(), BeginSubMesh(), EndSubMesh(), SetFaceNormals(), SetFaceTexCoords(), and SetMaterial(). |
|
|
Expressed in distance units.
Definition at line 119 of file meshmodifier.h. Referenced by EndSubMesh(), and OptimizeMesh(). |
1.3.6