31 #ifndef IMAGE_SHAPE_3D_H 32 #define IMAGE_SHAPE_3D_H 34 #ifndef __EMSCRIPTEN__ 36 #define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING 39 #include "image_mhd.h" 47 #include <boost/filesystem.hpp> 48 namespace fs = boost::filesystem;
50 #include <experimental/filesystem> 51 namespace fs = std::experimental::filesystem;
59 explicit ImageShape(
const std::string &shape_name)
60 :
Shape(shape_name), translation_(0.0), rotation_(1.0),
61 max_distance_(-INFINITY), min_distance_(INFINITY){};
63 virtual bool checkContain(
const Vec3d &input_pnt,
bool BOUNDARY_INCLUDED =
true)
override;
64 virtual Vec3d findClosestPoint(
const Vec3d &input_pnt)
override;
70 std::unique_ptr<ImageMHD<float, 3>> image_;
82 const std::string &shape_name =
"ImageShapeFromFile");
91 const std::string &shape_name =
"ImageShapeSphere");
96 #endif //__EMSCRIPTEN__ 98 #endif //IMAGE_SHAPE_3D_H Base class for all volumetric geometries Note that checkContain and findClosest point are basic funct...
Definition: base_geometry.h:64
Definition: image_shape.h:56
Definition: image_shape.h:86
Definition: image_shape.h:77
Shape is the base class for all geometries.
Definition: solid_body_supplementary.cpp:9