opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
icosahedron_geometry.h
Go to the documentation of this file.
1#pragma once
2
5
6#include <cstddef>
7
8namespace osc
9{
11 friend bool operator==(const IcosahedronGeometryParams&, const IcosahedronGeometryParams&) = default;
12
13 float radius = 1.0f;
14 size_t detail = 0;
15 };
16
18 public:
20
21 static constexpr CStringView name() { return "Icosahedron"; }
22
23 explicit IcosahedronGeometry(const Params& = {});
24
25 const Mesh& mesh() const { return mesh_; }
26 operator const Mesh& () const { return mesh_; }
27 private:
28 Mesh mesh_;
29 };
30}
Definition c_string_view.h:12
Definition icosahedron_geometry.h:17
const Mesh & mesh() const
Definition icosahedron_geometry.h:25
IcosahedronGeometry(const Params &={})
static constexpr CStringView name()
Definition icosahedron_geometry.h:21
Definition mesh.h:33
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56
Definition icosahedron_geometry.h:10
friend bool operator==(const IcosahedronGeometryParams &, const IcosahedronGeometryParams &)=default
size_t detail
Definition icosahedron_geometry.h:14
float radius
Definition icosahedron_geometry.h:13