153 void Print()
override;
Class for working with STL models.
Definition stl_model.hpp:17
This class represents different types of shapes and performs various calculations on them.
Definition shape.hpp:15
A class representing a sphere.
Definition shape_sphere.hpp:17
void UpdateSurfaceNodes() override
Update the surface nodes of the Sphere object.
Definition shape_sphere.cpp:48
void UpdateShapeProperties() override
Update the shape properties of the Sphere object.
Definition shape_sphere.cpp:70
Vec3d SupportPoint(Vec3d const &dir) override
Compute the support point of the Sphere object in a given direction.
Definition shape_sphere.cpp:113
STLModel GetSTLModel(int num_nodes=200) override
Generate an STL model for the Sphere object.
Definition shape_sphere.cpp:97
void InitFromJson(nlohmann::json const &js) override
Initialize the Sphere object from a JSON structure.
Definition shape_sphere.cpp:33
Shape * Clone() const override
Clone the Sphere object.
Definition shape_sphere.cpp:29
double SignedDistance(Vec3d const &pos) const override
Compute the signed distance between a point and the Sphere object.
Definition shape_sphere.cpp:121
Sphere()
Default constructor.
Definition shape_sphere.cpp:11
void Init()
Initialize the Sphere object.
Definition shape_sphere.cpp:41
Vec3d SurfacePoint(Vec3d const &pos) override
Compute the surface point of the Sphere object closest to a given point.
Definition shape_sphere.cpp:125
VecXT< Vec3d > SupportPoints(Vec3d const &dir) override
Compute the support points of the Sphere object in a given direction.
Definition shape_sphere.cpp:115
nlohmann::json PackJson() override
Pack the Sphere object into a JSON structure.
Definition shape_sphere.cpp:31
void Print() override
Print information about the Sphere object.
Definition shape_sphere.cpp:133
Definition bond_entry.hpp:7
std::vector< T > VecXT
Definition utils_macros.hpp:31
pos
Definition json_serilization.hpp:19
std::array< double, 3 > Vec3d
Definition utils_macros.hpp:18