opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
sphere_geometry.h
Go to the documentation of this file.
1#pragma once
2
6
7#include <cstddef>
8
9namespace osc
10{
22
24 public:
26
27 static constexpr CStringView name() { return "Sphere"; }
28
29 explicit SphereGeometry(const Params& = {});
30
31 const Mesh& mesh() const { return mesh_; }
32 operator const Mesh& () const { return mesh_; }
33 private:
34 Mesh mesh_;
35 };
36}
Definition angle.h:25
Definition c_string_view.h:12
Definition mesh.h:33
Definition sphere_geometry.h:23
SphereGeometry(const Params &={})
const Mesh & mesh() const
Definition sphere_geometry.h:31
static constexpr CStringView name()
Definition sphere_geometry.h:27
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56
Definition sphere_geometry.h:11
Radians phi_start
Definition sphere_geometry.h:17
Radians theta_length
Definition sphere_geometry.h:20
size_t num_width_segments
Definition sphere_geometry.h:15
Radians phi_length
Definition sphere_geometry.h:18
Radians theta_start
Definition sphere_geometry.h:19
size_t num_height_segments
Definition sphere_geometry.h:16
float radius
Definition sphere_geometry.h:14
friend bool operator==(const SphereGeometryParams &, const SphereGeometryParams &)=default