CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
TorusKnotMesh.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 "KnotPath.hpp"
13
15
19 private:
22
23 public:
26 TorusKnotMesh(int p = 2, int q = 3, int slices = 8, int segments = 96);
27
28 using Triangles = typename Impl::Triangles;
29
31
32 using Vertices = typename Impl::Vertices;
33
35 };
36
37} // namespace CeresEngine::MeshGenerator
Vertices vertices() const noexcept
Definition ExtrudeMesh.hpp:112
Triangles triangles() const noexcept
Definition ExtrudeMesh.hpp:111
A Circle extruded along a knot path.
Definition TorusKnotMesh.hpp:18
Impl mExtrudeMesh
Definition TorusKnotMesh.hpp:21
typename Impl::Triangles Triangles
Definition TorusKnotMesh.hpp:28
typename Impl::Vertices Vertices
Definition TorusKnotMesh.hpp:32
TorusKnotMesh(int p=2, int q=3, int slices=8, int segments=96)
Vertices vertices() const noexcept
Definition TorusKnotMesh.hpp:34
Triangles triangles() const noexcept
Definition TorusKnotMesh.hpp:30
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25