CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
SpringMesh.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 "CircleShape.hpp"
11#include "ExtrudeMesh.hpp"
12#include "HelixPath.hpp"
13
15
18 class SpringMesh {
19 private:
22
23 public:
31 SpringMesh(double minor = 0.25, double major = 1.0, double size = 1.0, int slices = 8, int segments = 32, double minorStart = 0.0,
32 double minorSweep = radians(360.0), double majorStart = 0.0, double majorSweep = radians(720.0));
33
34 using Triangles = typename Impl::Triangles;
35
37
38 using Vertices = typename Impl::Vertices;
39
41 };
42
43} // namespace CeresEngine::MeshGenerator
Vertices vertices() const noexcept
Definition ExtrudeMesh.hpp:112
Triangles triangles() const noexcept
Definition ExtrudeMesh.hpp:111
A spring aligned along the z-axis winding counterclockwise.
Definition SpringMesh.hpp:18
SpringMesh(double minor=0.25, double major=1.0, double size=1.0, int slices=8, int segments=32, double minorStart=0.0, double minorSweep=radians(360.0), double majorStart=0.0, double majorSweep=radians(720.0))
typename Impl::Triangles Triangles
Definition SpringMesh.hpp:34
Triangles triangles() const noexcept
Definition SpringMesh.hpp:36
Impl mExtrudeMesh
Definition SpringMesh.hpp:21
Vertices vertices() const noexcept
Definition SpringMesh.hpp:40
typename Impl::Vertices Vertices
Definition SpringMesh.hpp:38
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25