CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
TorusMesh.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 "CircleShape.hpp"
12#include "LatheMesh.hpp"
13#include "TranslateShape.hpp"
14
16
19 class TorusMesh {
20 private:
23
24 public:
33 TorusMesh(double minor = 0.25, double major = 1.0, int slices = 16, int segments = 32, double minorStart = 0.0, double minorSweep = radians(360.0),
34 double majorStart = 0.0, double majorSweep = radians(360.0));
35
36 using Triangles = typename Impl::Triangles;
37
39
40 using Vertices = typename Impl::Vertices;
41
43 };
44
45} // namespace CeresEngine::MeshGenerator
Triangles triangles() const noexcept
Definition AxisSwapMesh.hpp:70
Vertices vertices() const noexcept
Definition AxisSwapMesh.hpp:73
Torus centered at origin on the xy-plane.
Definition TorusMesh.hpp:19
typename Impl::Triangles Triangles
Definition TorusMesh.hpp:36
TorusMesh(double minor=0.25, double major=1.0, int slices=16, int segments=32, double minorStart=0.0, double minorSweep=radians(360.0), double majorStart=0.0, double majorSweep=radians(360.0))
Triangles triangles() const noexcept
Definition TorusMesh.hpp:38
Vertices vertices() const noexcept
Definition TorusMesh.hpp:42
typename Impl::Vertices Vertices
Definition TorusMesh.hpp:40
Impl mAxisSwapMesh
Definition TorusMesh.hpp:22
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25