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