Sirikata
Classes | Public Member Functions | Public Attributes
Sirikata::Mesh::SubMeshGeometry Struct Reference

#include <Meshdata.hpp>

Collaboration diagram for Sirikata::Mesh::SubMeshGeometry:

List of all members.

Classes

struct  Primitive
struct  TextureSet

Public Member Functions

void recomputeBounds ()
void append (const SubMeshGeometry &rhs, const Matrix4x4f &xform)
 Append the given SubMeshGeometry to the end of this one.

Public Attributes

std::string name
std::vector< Sirikata::Vector3f > positions
std::vector< Sirikata::Vector3f > normals
std::vector< Sirikata::Vector3f > tangents
std::vector< Sirikata::Vector4f > colors
std::vector< TextureSettexUVs
std::vector< Primitiveprimitives
BoundingBox3f3f aabb
double radius
SkinControllerList skinControllers

Member Function Documentation

void Sirikata::Mesh::SubMeshGeometry::append ( const SubMeshGeometry rhs,
const Matrix4x4f xform 
)

Append the given SubMeshGeometry to the end of this one.

Use the given transformation to transform the geometry before adding it. This is a useful primitive when trying to merge/simplify geometry.

References colors, Sirikata::Logging::error, Sirikata::Matrix4x4< scalar >::extract3x3(), Sirikata::Mesh::SubMeshGeometry::Primitive::indices, Sirikata::Mesh::SubMeshGeometry::Primitive::materialId, normals, positions, primitives, Sirikata::Mesh::SubMeshGeometry::Primitive::primitiveType, SILOG, and texUVs.

Referenced by Sirikata::Mesh::SquashInstancedGeometryFilter::apply().

void Sirikata::Mesh::SubMeshGeometry::recomputeBounds ( )

Member Data Documentation

std::vector<Sirikata::Vector4f> Sirikata::Mesh::SubMeshGeometry::colors
std::vector<Sirikata::Vector3f> Sirikata::Mesh::SubMeshGeometry::normals
std::vector<Sirikata::Vector3f> Sirikata::Mesh::SubMeshGeometry::positions
std::vector<Sirikata::Vector3f> Sirikata::Mesh::SubMeshGeometry::tangents

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