OGRE 2.1
Object-Oriented Graphics Rendering Engine
|
This class contains the information required to describe the edge connectivity of a given set of vertices and indexes. More...
#include <OgreEdgeListBuilder.h>
Classes | |
struct | Edge |
Edge data. More... | |
struct | EdgeGroup |
A group of edges sharing the same vertex data. More... | |
struct | Triangle |
Basic triangle structure. More... | |
Public Types | |
typedef vector< EdgeGroup >::type | EdgeGroupList |
typedef vector< Edge >::type | EdgeList |
typedef std::vector< Vector4, STLAllocator< Vector4, CategorisedAlignAllocPolicy< MEMCATEGORY_GEOMETRY > > > | TriangleFaceNormalList |
Array of 4D vector of triangle face normal, which is unit vector orthogonal to the triangles, plus distance from origin. | |
typedef vector< char >::type | TriangleLightFacingList |
Working vector used when calculating the silhouette. | |
typedef vector< Triangle >::type | TriangleList |
Public Member Functions | |
EdgeData () | |
EdgeData * | clone () |
void | log (Log *log) |
Debugging method. | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void | updateFaceNormals (size_t vertexSet, const HardwareVertexBufferSharedPtr &positionBuffer) |
Updates the face normals for this edge list based on (changed) position information, useful for animated objects. | |
void | updateTriangleLightFacing (const Vector4 &lightPos) |
Calculate the light facing state of the triangles in this edge list. | |
Public Attributes | |
EdgeGroupList | edgeGroups |
All edge groups of this edge list. | |
bool | isClosed |
Flag indicate the mesh is manifold. | |
TriangleFaceNormalList | triangleFaceNormals |
All triangle face normals. | |
TriangleLightFacingList | triangleLightFacings |
Triangle light facing states. | |
TriangleList | triangles |
Main triangles array, stores all triangles of this edge list. | |
This class contains the information required to describe the edge connectivity of a given set of vertices and indexes.
typedef std::vector<Vector4, STLAllocator<Vector4, CategorisedAlignAllocPolicy<MEMCATEGORY_GEOMETRY> > > Ogre::v1::EdgeData::TriangleFaceNormalList |
Array of 4D vector of triangle face normal, which is unit vector orthogonal to the triangles, plus distance from origin.
Use aligned policy here because we are intended to use in SIMD optimised routines.
Working vector used when calculating the silhouette.
Use std::vector<char> instead of std::vector<bool> which might implemented similar bit-fields causing loss performance.
Ogre::v1::EdgeData::EdgeData | ( | ) |
EdgeData * Ogre::v1::EdgeData::clone | ( | ) |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
void Ogre::v1::EdgeData::updateFaceNormals | ( | size_t | vertexSet, |
const HardwareVertexBufferSharedPtr & | positionBuffer | ||
) |
Updates the face normals for this edge list based on (changed) position information, useful for animated objects.
vertexSet | The vertex set we are updating |
positionBuffer | The updated position buffer, must contain ONLY xyz |
Calculate the light facing state of the triangles in this edge list.
lightPos | 4D position of the light in object space, note that for directional lights (which have no position), the w component is 0 and the x/y/z position are the direction. |
EdgeGroupList Ogre::v1::EdgeData::edgeGroups |
All edge groups of this edge list.
bool Ogre::v1::EdgeData::isClosed |
Flag indicate the mesh is manifold.
TriangleFaceNormalList Ogre::v1::EdgeData::triangleFaceNormals |
All triangle face normals.
It should be 1:1 with triangles.
TriangleLightFacingList Ogre::v1::EdgeData::triangleLightFacings |
Triangle light facing states.
It should be 1:1 with triangles.
TriangleList Ogre::v1::EdgeData::triangles |
Main triangles array, stores all triangles of this edge list.
Note that triangles are grouping against edge group.