extract explicit mesh with topology information from implicit surfaces with boolean operations, and do surface/volume integrating on them.
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.

31 lines
1023 B

#pragma once
#include <base/primitive.hpp>
#include <subface/simple/plane.hpp>
#include <subface/simple/cylinder_face.hpp>
namespace internal
{
struct cylinder_t final : public primitive {
void initialize(primitive_data_center_t &) override;
void destroy() override;
primitive_type get_type() const override { return PRIMITIVE_TYPE_CYLINDER; };
stl_vector_mp<marked_subface_ptr_t<subface>> get_subfaces() const override
{
return {static_pointer_cast<subface>(cylinder_face),
static_pointer_cast<subface>(bottom_plane),
static_pointer_cast<subface>(top_plane)};
}
stl_vector_mp<surface_type> get_subface_types() const override
{
return {surface_type::cylinder, surface_type::plane, surface_type::plane};
}
marked_subface_ptr_t<internal::cylinder_face_t> cylinder_face{};
marked_subface_ptr_t<internal::plane_t> bottom_plane{};
marked_subface_ptr_t<internal::plane_t> top_plane{};
};
} // namespace internal