![]() |
OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
This class will mark vertices of a mesh, which are visible from far away (from outside). More...
#include <OgreLodOutsideMarker.h>
Public Member Functions | |
| LodOutsideMarker (LodData::VertexList &vertexList, Real boundingSphereRadius, Real walkAngle) | |
| MeshPtr | createConvexHullMesh (const String &meshName, const String &resourceGroupName=ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME) |
| Mark vertices, which are visible from outside. | |
| bool | isVertexOutside (LodData::Vertex *v) |
| Returns a mesh containing the Convex Hull shape. | |
| void | markOutside () |
This class will mark vertices of a mesh, which are visible from far away (from outside).
Triangle is visible if each vertex of it is visible.
| Ogre::LodOutsideMarker::LodOutsideMarker | ( | LodData::VertexList & | vertexList, |
| Real | boundingSphereRadius, | ||
| Real | walkAngle ) |
| vertexList | List of vertices. vertex.position is the input and vertex.isOuterWallVertex is the output of the algorithm. |
| boundingSphereRadius | |
| walkAngle | Walk angle in dot product values. Allowed range is from -1 to 1. Default = 0. Smaller value is bigger angle. If you set it to 1 then you can disable walking and it will only mark the vertices on the convex hull. |
| void Ogre::LodOutsideMarker::markOutside | ( | ) |
| MeshPtr Ogre::LodOutsideMarker::createConvexHullMesh | ( | const String & | meshName, |
| const String & | resourceGroupName = ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME ) |
Mark vertices, which are visible from outside.
References Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME.
|
inline |
Returns a mesh containing the Convex Hull shape.