|
Skyscraper 2.0
|
#include <polymesh.h>


Classes | |
| struct | TriangleIndices |
Public Member Functions | |
| PolyMesh (MeshObject *mesh) | |
| ~PolyMesh () | |
| bool | CreateMesh (const std::string &name, const std::string &texture, PolyArray &vertices, Real tw, Real th, bool autosize, Matrix3 &tex_matrix, Vector3 &tex_vector, std::vector< std::vector< Polygon::Geometry > > &geometry, std::vector< Triangle > &triangles, PolygonSet &converted_vertices) |
| bool | CreateMesh (const std::string &name, const std::string &material, PolygonSet &vertices, Matrix3 &tex_matrix, Vector3 &tex_vector, std::vector< std::vector< Polygon::Geometry > > &geometry, std::vector< Triangle > &triangles, PolygonSet &converted_vertices, Real tw, Real th, bool convert_vertices=true) |
| Wall * | FindWallIntersect (const Vector3 &start, const Vector3 &end, Vector3 &isect, Real &distance, Vector3 &normal, Wall *wall=0) |
| Vector2 * | GetTexels (Matrix3 &tex_matrix, Vector3 &tex_vector, PolygonSet &vertices, Real tw, Real th, size_t &texel_count) |
| Vector2 | GetExtents (int coord, bool flip_z=false) |
Public Member Functions inherited from SBS::ObjectBase | |
| ObjectBase (Object *parent) | |
| virtual | ~ObjectBase () |
| Object * | GetParent () |
| SBS * | GetRoot () |
| void | SetName (const std::string &name) |
| const std::string & | GetName () |
| std::string | GetNameBase () |
| virtual void | Report (const std::string &message) |
| virtual bool | ReportError (const std::string &message) |
Private Attributes | |
| MeshObject * | mesh |
Additional Inherited Members | |
Protected Attributes inherited from SBS::ObjectBase | |
| SBS * | sbs |
Definition at line 33 of file polymesh.h.
| SBS::PolyMesh::PolyMesh | ( | MeshObject * | mesh | ) |
Definition at line 35 of file polymesh.cpp.
References mesh.
| SBS::PolyMesh::~PolyMesh | ( | ) |
Definition at line 40 of file polymesh.cpp.
| bool SBS::PolyMesh::CreateMesh | ( | const std::string & | name, |
| const std::string & | material, | ||
| PolygonSet & | vertices, | ||
| Matrix3 & | tex_matrix, | ||
| Vector3 & | tex_vector, | ||
| std::vector< std::vector< Polygon::Geometry > > & | geometry, | ||
| std::vector< Triangle > & | triangles, | ||
| PolygonSet & | converted_vertices, | ||
| Real | tw, | ||
| Real | th, | ||
| bool | convert_vertices = true ) |
Definition at line 160 of file polymesh.cpp.
References SBS::Utility::ComputePlane(), SBS::MeshObject::DeleteCollider(), SBS::SBS::DeleteColliders, GetTexels(), SBS::SBS::GetUtility(), mesh, SBS::ObjectBase::ReportError(), SBS::ObjectBase::sbs, SBS::SBS::ToRemote(), and SBS::PolyMesh::TriangleIndices::triangles.

| bool SBS::PolyMesh::CreateMesh | ( | const std::string & | name, |
| const std::string & | texture, | ||
| PolyArray & | vertices, | ||
| Real | tw, | ||
| Real | th, | ||
| bool | autosize, | ||
| Matrix3 & | tex_matrix, | ||
| Vector3 & | tex_vector, | ||
| std::vector< std::vector< Polygon::Geometry > > & | geometry, | ||
| std::vector< Triangle > & | triangles, | ||
| PolygonSet & | converted_vertices ) |
Definition at line 102 of file polymesh.cpp.
References SBS::TextureManager::CalculateSizing(), SBS::TextureManager::ComputeTextureMap(), CreateMesh(), SBS::MeshObject::Filename, SBS::SBS::GetTextureManager(), SBS::TextureManager::GetTextureMapping(), SBS::TextureManager::GetTextureMaterial(), SBS::TextureManager::GetTextureTiling(), mesh, SBS::ObjectBase::ReportError(), SBS::ObjectBase::sbs, SBS::SBS::ToLocal(), and SBS::SBS::ToRemote().
Referenced by SBS::Wall::AddPolygon(), SBS::Wall::AddPolygonSet(), and CreateMesh().

| Wall * SBS::PolyMesh::FindWallIntersect | ( | const Vector3 & | start, |
| const Vector3 & | end, | ||
| Vector3 & | isect, | ||
| Real & | distance, | ||
| Vector3 & | normal, | ||
| Wall * | wall = 0 ) |
Definition at line 44 of file polymesh.cpp.
References SBS::SBS::camera, SBS::Camera::HitPosition, SBS::Polygon::IntersectSegment(), mesh, SBS::ObjectBase::sbs, SBS_PROFILE, SBS::SBS::ToRemote(), and SBS::MeshObject::Walls.
Referenced by SBS::Wall::GetPoint(), and SBS::SBS::HitBeam().

| Vector2 SBS::PolyMesh::GetExtents | ( | int | coord, |
| bool | flip_z = false ) |
| Vector2 * SBS::PolyMesh::GetTexels | ( | Matrix3 & | tex_matrix, |
| Vector3 & | tex_vector, | ||
| PolygonSet & | vertices, | ||
| Real | tw, | ||
| Real | th, | ||
| size_t & | texel_count ) |
Definition at line 256 of file polymesh.cpp.
References SBS::ObjectBase::sbs, and SBS::SBS::TexelOverride.
Referenced by CreateMesh().
|
private |
Definition at line 56 of file polymesh.h.
Referenced by CreateMesh(), CreateMesh(), FindWallIntersect(), and PolyMesh().