CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CappedConeMesh.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 "ConeMesh.hpp"
11#include "DiskMesh.hpp"
12#include "FlipMesh.hpp"
13#include "MergeMesh.hpp"
14#include "TranslateMesh.hpp"
15#include "UvFlipMesh.hpp"
16
18
22 private:
25
26 public:
35 CappedConeMesh(double radius = 1.0, double size = 1.0, int slices = 32, int segments = 8, int rings = 4, double start = 0.0,
36 double sweep = radians(360.0));
37
38 using Triangles = typename Impl::Triangles;
39 [[nodiscard]] Triangles triangles() const noexcept { return mMergeMesh.triangles(); }
40
41 using Vertices = typename Impl::Vertices;
42 [[nodiscard]] Vertices vertices() const noexcept { return mMergeMesh.vertices(); }
43 };
44
45} // namespace CeresEngine::MeshGenerator
A cone with a cap centered at origin pointing towards positive z-axis.
Definition CappedConeMesh.hpp:21
CappedConeMesh(double radius=1.0, double size=1.0, int slices=32, int segments=8, int rings=4, double start=0.0, double sweep=radians(360.0))
typename Impl::Vertices Vertices
Definition CappedConeMesh.hpp:41
typename Impl::Triangles Triangles
Definition CappedConeMesh.hpp:38
Triangles triangles() const noexcept
Definition CappedConeMesh.hpp:39
Impl mMergeMesh
Definition CappedConeMesh.hpp:24
Vertices vertices() const noexcept
Definition CappedConeMesh.hpp:42
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25