opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
box_geometry.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace osc
8{
10 friend bool operator==(const BoxGeometryParams&, const BoxGeometryParams&) = default;
11
12 Vector3 dimensions = {1.0f, 1.0f, 1.0f};
14 };
15
17 public:
19
20 static constexpr CStringView name() { return "Box"; }
21
22 explicit BoxGeometry(const Params& = Params{});
23
24 const Mesh& mesh() const { return mesh_; }
25 operator const Mesh& () const { return mesh_; }
26 private:
27 Mesh mesh_;
28 };
29}
Definition box_geometry.h:16
BoxGeometry(const Params &=Params{})
const Mesh & mesh() const
Definition box_geometry.h:24
static constexpr CStringView name()
Definition box_geometry.h:20
Definition c_string_view.h:12
Definition mesh.h:33
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56
Definition box_geometry.h:9
Vector3 dimensions
Definition box_geometry.h:12
Vector3uz num_segments
Definition box_geometry.h:13
friend bool operator==(const BoxGeometryParams &, const BoxGeometryParams &)=default