|
Avara3D 0.2.0
C++ API reference
|
Icosphere mesh element centered at the origin. More...
#include <a3d/mesh/primitive/Sphere.h>
Public Member Functions | |
| Sphere (float radius, unsigned segments=DEFAULT_SEGMENTS) | |
Generates icosphere geometry with radius and segments subdivisions per edge. More... | |
| float | radius () const |
| Returns the configured sphere radius. More... | |
| unsigned | segments () const |
| Returns the number of subdivisions per icosahedron edge. More... | |
Public Member Functions inherited from a3d::MeshElement | |
| MeshElement (VertexLayout layout, std::span< const std::byte > vertexBytes, uint32_t vertexCount, uint16_t vertexStride, PrimitiveTopology topology, IndexFormat indexFormat, std::span< const std::byte > indexBytes, uint32_t indexCount) | |
| Creates a MeshElement by copying the supplied vertex and index data. More... | |
Static Public Member Functions | |
| static std::shared_ptr< Mesh > | Mesh (float radius, unsigned segments=DEFAULT_SEGMENTS, std::shared_ptr< Material > material=nullptr) |
Creates a Mesh containing a Sphere and optional material. More... | |
Icosphere mesh element centered at the origin.
Segments controls the number of subdivisions applied to each icosahedron edge.
|
explicit |
Generates icosphere geometry with radius and segments subdivisions per edge.
| float a3d::Sphere::radius | ( | ) | const |
Returns the configured sphere radius.
| unsigned a3d::Sphere::segments | ( | ) | const |
Returns the number of subdivisions per icosahedron edge.