Render agnostic mesh data with only position.
More...
#include <OxygenEngine/scene/mesh.h>
|
| SimpleMesh (const std::vector< V > &vertices, const std::vector< index_t > &indices={}) |
|
| SimpleMesh (const std::vector< V > &vertices, const std::vector< std::vector< index_t > > &mesh_indices) |
|
constexpr uint32_t | addSubMesh (const std::vector< oe::scene::index_t > &indices) noexcept |
|
constexpr std::vector< V > & | getVertices () noexcept |
|
constexpr const std::vector< V > & | getVertices () const noexcept |
|
template<VertexPredicateFunction< V > F> |
constexpr AABB | generateBoundingBoxFromPredicate (F &&predicate) const noexcept |
| Generate a bounding box containing vertices matching a predicate.
|
|
constexpr uint32_t | getSubMeshCount () const noexcept |
|
constexpr const std::vector< index_t > & | getIndices (uint32_t sub_mesh=0) const noexcept |
|
constexpr const AABB & | getBoundingBox () const noexcept |
|
constexpr void | flipFaces () noexcept |
|
constexpr const std::vector< glm::uvec3 > | getTriangles (uint32_t sub_mesh=0) const |
|
|
std::vector< V > | _vertices |
|
std::vector< std::vector< index_t > > | _indices |
|
AABB | _aabb |
|
template<SimpleVertex V>
class oe::scene::SimpleMesh< V >
Render agnostic mesh data with only position.
◆ generateBoundingBoxFromPredicate()
template<SimpleVertex V>
template<VertexPredicateFunction< V > F>
Generate a bounding box containing vertices matching a predicate.
- Parameters
-
predicate | A function with a vertex as parameter that should return true if the vertex should be considered in the bbox |
The documentation for this class was generated from the following file: