SPHinXsys  alpha version
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SPH::GeometricShapeBox Class Reference

Inherits SPH::GeometricShape, and SPH::Shape.

Inherited by SPH::TransformShape< GeometricShapeBox >.

Public Member Functions

 GeometricShapeBox (const Vec2d &halfsize, const std::string &shape_name="GeometricShapeBox")
 
virtual bool checkContain (const Vec2d &pnt, bool BOUNDARY_INCLUDED=true) override
 
virtual Vec2d findClosestPoint (const Vec2d &pnt) override
 
 GeometricShapeBox (const Vec3d &halfsize, const std::string &shape_name="GeometricShapeBox")
 
virtual bool checkContain (const Vec3d &pnt, bool BOUNDARY_INCLUDED=true) override
 
virtual Vec3d findClosestPoint (const Vec3d &pnt) override
 
- Public Member Functions inherited from SPH::GeometricShape
 GeometricShape (const std::string &shape_name)
 
SimTK::ContactGeometry * getContactGeometry ()
 
- Public Member Functions inherited from SPH::Shape
 Shape (const std::string &shape_name)
 
std::string getName ()
 
void setName (const std::string &name)
 
BoundingBox getBounds ()
 
virtual bool isValid ()
 
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
 
virtual BoundingBox findBounds () override
 

Protected Attributes

Vec2d halfsize_
 
MultiPolygon multi_polygon_
 
Vec3d halfsize_
 
- Protected Attributes inherited from SPH::GeometricShape
SimTK::ContactGeometry * contact_geometry_
 
- Protected Attributes inherited from SPH::Shape
std::string name_
 
BoundingBox bounding_box_
 
bool is_bounds_found_
 

The documentation for this class was generated from the following files: