CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
DiskMesh.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 "AxisSwapMesh.hpp"
11#include "LatheMesh.hpp"
12#include "LineShape.hpp"
13
15
18 class DiskMesh {
19 private:
22
23 public:
30 DiskMesh(double radius = 1.0, double innerRadius = 0.0, int slices = 32, int rings = 4, double start = 0.0, double sweep = radians(360.0));
31
32 using Triangles = typename Impl::Triangles;
34
35 using Vertices = typename Impl::Vertices;
37 };
38
39} // namespace CeresEngine::MeshGenerator
typename Impl::Vertices Vertices
Definition AxisSwapMesh.hpp:72
Triangles triangles() const noexcept
Definition AxisSwapMesh.hpp:70
Vertices vertices() const noexcept
Definition AxisSwapMesh.hpp:73
A circular disk centered at origin on the xy-plane.
Definition DiskMesh.hpp:18
Impl mAxisSwapMesh
Definition DiskMesh.hpp:21
DiskMesh(double radius=1.0, double innerRadius=0.0, int slices=32, int rings=4, double start=0.0, double sweep=radians(360.0))
Vertices vertices() const noexcept
Definition DiskMesh.hpp:36
typename Impl::Vertices Vertices
Definition DiskMesh.hpp:35
typename Impl::Triangles Triangles
Definition DiskMesh.hpp:32
Triangles triangles() const noexcept
Definition DiskMesh.hpp:33
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25