Sirikata
Public Types | Public Member Functions | Public Attributes
Sirikata::Mesh::GeometryInstance Struct Reference

#include <Meshdata.hpp>

Collaboration diagram for Sirikata::Mesh::GeometryInstance:

List of all members.

Public Types

typedef std::map
< SubMeshGeometry::Primitive::MaterialId,
size_t > 
MaterialBindingMap

Public Member Functions

BoundingBox3f3f computeTransformedBounds (MeshdataPtr parent, const Matrix4x4f &xform) const
 Compute the bounds of this instance with the given transform.
BoundingBox3f3f computeTransformedBounds (const Meshdata &parent, const Matrix4x4f &xform) const
void computeTransformedBounds (MeshdataPtr parent, const Matrix4x4f &xform, BoundingBox3f3f *bounds_out, double *radius_out) const
void computeTransformedBounds (const Meshdata &parent, const Matrix4x4f &xform, BoundingBox3f3f *bounds_out, double *radius_out) const

Public Attributes

MaterialBindingMap materialBindingMap
unsigned int geometryIndex
NodeIndex parentNode

Member Typedef Documentation


Member Function Documentation

BoundingBox3f3f Sirikata::Mesh::GeometryInstance::computeTransformedBounds ( MeshdataPtr  parent,
const Matrix4x4f xform 
) const

Compute the bounds of this instance with the given transform.

This is more precise, and much more expensive, than transforming the SubMeshGeometry's bounds.

Referenced by Sirikata::Mesh::ComputeBounds(), and computeTransformedBounds().

void Sirikata::Mesh::GeometryInstance::computeTransformedBounds ( const Meshdata parent,
const Matrix4x4f xform,
BoundingBox3f3f *  bounds_out,
double *  radius_out 
) const
void Sirikata::Mesh::GeometryInstance::computeTransformedBounds ( MeshdataPtr  parent,
const Matrix4x4f xform,
BoundingBox3f3f *  bounds_out,
double *  radius_out 
) const
BoundingBox3f3f Sirikata::Mesh::GeometryInstance::computeTransformedBounds ( const Meshdata parent,
const Matrix4x4f xform 
) const

Member Data Documentation


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