CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
IcoSphereMesh.hpp
Go to the documentation of this file.
1//
2// CeresEngine - A game development framework
3//
4// Created by Rogiel Sulzbach.
5// Copyright (c) 2018-2022 Rogiel Sulzbach. All rights reserved.
6//
7
8#pragma once
9
10#include "IcosahedronMesh.hpp"
11#include "SpherifyMesh.hpp"
12
14
18 private:
21
22 public:
25 IcoSphereMesh(double radius = 1.0, int segments = 4);
26
27 using Triangles = typename Impl::Triangles;
29
30 using Vertices = typename Impl::Vertices;
32 };
33
34} // namespace CeresEngine::MeshGenerator
Icosphere aka spherical subdivided icosahedron.
Definition IcoSphereMesh.hpp:17
Triangles triangles() const noexcept
Definition IcoSphereMesh.hpp:28
Impl mSpherifyMesh
Definition IcoSphereMesh.hpp:20
typename Impl::Vertices Vertices
Definition IcoSphereMesh.hpp:30
typename Impl::Triangles Triangles
Definition IcoSphereMesh.hpp:27
IcoSphereMesh(double radius=1.0, int segments=4)
Vertices vertices() const noexcept
Definition IcoSphereMesh.hpp:31
Vertices vertices() const noexcept
Definition SpherifyMesh.hpp:33
typename Impl::Triangles Triangles
Definition SpherifyMesh.hpp:27
Triangles triangles() const noexcept
Definition SpherifyMesh.hpp:29
typename Impl::Vertices Vertices
Definition SpherifyMesh.hpp:31
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25