Skyscraper 2.0
SBS::PolyMesh Class Reference

#include <polymesh.h>

Inheritance diagram for SBS::PolyMesh:
Collaboration diagram for SBS::PolyMesh:

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)
 
WallFindWallIntersect (const Vector3 &start, const Vector3 &end, Vector3 &isect, Real &distance, Vector3 &normal, Wall *wall=0)
 
Vector2GetTexels (Matrix3 &tex_matrix, Vector3 &tex_vector, PolygonSet &vertices, Real tw, Real th)
 
Vector2 GetExtents (int coord, bool flip_z=false)
 
- Public Member Functions inherited from SBS::ObjectBase
 ObjectBase (Object *parent)
 
virtual ~ObjectBase ()
 
ObjectGetParent ()
 
SBSGetRoot ()
 
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

MeshObjectmesh
 

Additional Inherited Members

- Protected Attributes inherited from SBS::ObjectBase
SBSsbs
 

Detailed Description

Definition at line 33 of file polymesh.h.

Constructor & Destructor Documentation

◆ PolyMesh()

SBS::PolyMesh::PolyMesh ( MeshObject * mesh)

Definition at line 35 of file polymesh.cpp.

References mesh.

◆ ~PolyMesh()

SBS::PolyMesh::~PolyMesh ( )

Definition at line 40 of file polymesh.cpp.

Member Function Documentation

◆ CreateMesh() [1/2]

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 )

◆ CreateMesh() [2/2]

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 )

◆ FindWallIntersect()

Wall * SBS::PolyMesh::FindWallIntersect ( const Vector3 & start,
const Vector3 & end,
Vector3 & isect,
Real & distance,
Vector3 & normal,
Wall * wall = 0 )

◆ GetExtents()

Vector2 SBS::PolyMesh::GetExtents ( int coord,
bool flip_z = false )

◆ GetTexels()

Vector2 * SBS::PolyMesh::GetTexels ( Matrix3 & tex_matrix,
Vector3 & tex_vector,
PolygonSet & vertices,
Real tw,
Real th )

Definition at line 252 of file polymesh.cpp.

References SBS::ObjectBase::sbs, and SBS::SBS::TexelOverride.

Referenced by CreateMesh().

Member Data Documentation

◆ mesh

MeshObject* SBS::PolyMesh::mesh
private

Definition at line 56 of file polymesh.h.

Referenced by CreateMesh(), CreateMesh(), FindWallIntersect(), and PolyMesh().


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