SPHinXsys
alpha version
|
A shape whose geometry is defined by a multi polygon. More...
#include <multi_polygon_shape.h>
Inherits SPH::Shape.
Public Member Functions | |
MultiPolygonShape (const std::string &shape_name) | |
MultiPolygonShape (const MultiPolygon &multi_polygon, const std::string &shape_name="MultiPolygonShape") | |
virtual bool | isValid () override |
virtual bool | checkContain (const Vec2d &input_pnt, bool BOUNDARY_INCLUDED=true) override |
virtual Vec2d | findClosestPoint (const Vec2d &input_pnt) override |
Public Member Functions inherited from SPH::Shape | |
Shape (const std::string &shape_name) | |
std::string | getName () |
void | setName (const std::string &name) |
BoundingBox | getBounds () |
bool | checkNotFar (const Vecd &input_pnt, Real threshold) |
bool | checkNearSurface (const Vecd &input_pnt, Real threshold) |
Real | findSignedDistance (const Vecd &input_pnt) |
Vecd | findNormalDirection (const Vecd &input_pnt) |
Protected Member Functions | |
virtual BoundingBox | findBounds () override |
Protected Attributes | |
MultiPolygon | multi_polygon_ |
Protected Attributes inherited from SPH::Shape | |
std::string | name_ |
BoundingBox | bounding_box_ |
bool | is_bounds_found_ |
A shape whose geometry is defined by a multi polygon.
|
inlineexplicit |
Default constructor.