CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
KnotPath.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 "ParametricPath.hpp"
13
15
18 class KnotPath {
19 private:
22
23 public:
27 KnotPath(int p = 2, int q = 3, int segments = 96);
28
29 using Edges = typename Impl::Edges;
31
32 using Vertices = typename Impl::Vertices;
34 };
35
36} // namespace CeresEngine::MeshGenerator
A circle winding multiple times around.
Definition KnotPath.hpp:18
typename Impl::Vertices Vertices
Definition KnotPath.hpp:32
Impl mParametricPath
Definition KnotPath.hpp:21
typename Impl::Edges Edges
Definition KnotPath.hpp:29
KnotPath(int p=2, int q=3, int segments=96)
Edges edges() const noexcept
Definition KnotPath.hpp:30
Vertices vertices() const noexcept
Definition KnotPath.hpp:33
Path generated by evaluating callback functions at even intervals.
Definition ParametricPath.hpp:18
Definition AnyGenerator.hpp:12
constexpr size_t hash(const T &v)
Generates a hash for the provided type.
Definition Hash.hpp:25