|
|
| Sphere (const unsigned int &segments=64, const float &uv_scale=1.0) |
| |
|
constexpr AABB | getPrimitiveBoundingBox (size_t primitive) const noexcept |
| | Generate bounding box for the specified primitive.
|
| |
| template<typename F > |
| constexpr AABB | getPrimitiveBoundingBox (size_t primitive, F &&predicate) const noexcept |
| | Generate bounding box for the specified primitive containing vertices matching a predicate.
|
| |
|
constexpr AABB | getBoundingBox () const noexcept |
| | Generate englobing mesh bounding box.
|
| |
|
constexpr void | flipFaces () |
| |
|
constexpr const std::vector< glm::uvec3 > | getTriangles () const |
| | Get groups of 3 indices that form triangles.
|
| |
|
constexpr void | generateNormals () |
| | Generate mesh normals from vertices positions.
|
| |
|
constexpr void | generateTangents () |
| | Compute Tangents using mikkTSpace.
|
| |
|
|
using | vertex_type = VertexType |
| |
|
using | index_type = IndexType |
| |
|
using | VertexContainerType = MeshSettingsType::VertexContainerType |
| |
|
using | IndexContainerType = MeshSettingsType::IndexContainerType |
| |
| template<typename PrimitiveType > |
| static Mesh | generateFromPrimitives (std::span< const PrimitiveType > primitives) |
| | Generate a mesh from primitives.
|
| |
|
VertexContainerType | vertices |
| |
|
IndexContainerType | indices |
| |
|
MeshSettingsType::PrimitivesContainerType | primitives = {} |
| |
The documentation for this class was generated from the following file: