Unravel Engine C++ Reference
Loading...
Searching...
No Matches
any_mesh.cpp
Go to the documentation of this file.
1#include "any_mesh.hpp"
2
3using namespace generator;
4
5any_mesh::base::~base() = default;
6
7any_mesh::any_mesh(const any_mesh& that) : base_{that.base_->clone()}
8{
9}
10
12{
13 base_ = that.base_->clone();
14 return *this;
15}
16
18{
19 return base_->triangles();
20}
21
23{
24 return base_->vertices();
25}
A type erasing container that can store any mesh.
Definition any_mesh.hpp:15
any_generator< mesh_vertex_t > vertices() const noexcept
Definition any_mesh.cpp:22
any_mesh & operator=(const any_mesh &that)
Definition any_mesh.cpp:11
any_generator< triangle_t > triangles() const noexcept
Definition any_mesh.cpp:17
any_mesh(mesh_t mesh)
Definition any_mesh.hpp:18