|
CeresEngine 0.2.0
A game development framework
|
A polygonal disk with arbitrary number of corners. More...
#include <CeresEngine/Mesh/Generator/ConvexPolygonMesh.hpp>
Classes | |
| class | Triangles |
| class | Vertices |
Public Member Functions | |
| ConvexPolygonMesh (double radius=1.0, int sides=5, int segments=4, int rings=4) noexcept | |
| ConvexPolygonMesh (const Vector< Vector2 > &vertices, int segments=1, int rings=1) noexcept | |
| ConvexPolygonMesh (Vector< Vector3 > vertices, int segments=1, int rings=1) noexcept | |
| Triangles | triangles () const noexcept |
| Vertices | vertices () const noexcept |
Private Attributes | |
| Vector< Vector3 > | mVertices |
| int | mSegments |
| int | mRings |
| Vector3 | mCenter |
| Vector3 | mNormal |
| Vector3 | mTangent |
| Vector3 | mBitangent |
| Vector2 | mTexDelta |
A polygonal disk with arbitrary number of corners.
Subdivided along each side to segments and radially to rings.
|
explicitnoexcept |
| radius | The radius the enclosing circle. |
| sides | The number of sides. Should be >= 3. If <3 an empty mesh is generated. |
| segments | The number of segments per side. Should be >= 1. If zero an empty mesh is generated. |
| rings | The number of radial segments. Should be >= 1. = yelds an empty mesh. |
|
explicitnoexcept |
|
explicitnoexcept |
| vertices | The corner vertex coordinates. Should be coplanar and form a convex polygon. calculated as an avarage. |
|
noexcept |
|
noexcept |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |