You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <base/primitive.hpp>
|
|
|
|
#include <subface/simple/sphere_face.hpp>
|
|
|
|
|
|
|
|
namespace internal
|
|
|
|
{
|
|
|
|
struct sphere_t final : primitive {
|
|
|
|
void initialize(primitive_data_center_t &) override;
|
|
|
|
void destroy() override;
|
|
|
|
|
|
|
|
primitive_type get_type() const override { return PRIMITIVE_TYPE_SPHERE; };
|
|
|
|
|
|
|
|
stl_vector_mp<marked_subface_ptr_t<subface>> get_subfaces() const override
|
|
|
|
{
|
|
|
|
return {static_pointer_cast<subface>(sphere_face)};
|
|
|
|
}
|
|
|
|
|
|
|
|
stl_vector_mp<surface_type> get_subface_types() const override { return {surface_type::sphere}; }
|
|
|
|
|
|
|
|
marked_subface_ptr_t<internal::sphere_face_t> sphere_face{};
|
|
|
|
};
|
|
|
|
} // namespace internal
|