SPHinXsys
alpha version
|
Used to describe a bounding box in which the plane vertical to axis direction is aligned to a planar piece of a shape. More...
#include <complex_shape.h>
Inherits SPH::TransformShape< GeometricShapeBox >.
Public Member Functions | |
template<typename... Args> | |
AlignedBoxShape (const Transformd &transformd, Args &&...args) | |
template<typename... Args> | |
AlignedBoxShape (const Shape &shape, Args &&...args) | |
Vecd | HalfSize () |
bool | checkInBounds (int axis, const Vecd &point) |
bool | checkUpperBound (int axis, const Vecd &point) |
bool | checkLowerBound (int axis, const Vecd &point) |
bool | checkNearUpperBound (int axis, const Vecd &point, Real threshold) |
bool | checkNearLowerBound (int axis, const Vecd &point, Real threshold) |
Vecd | getUpperPeriodic (int axis, const Vecd &point) |
Vecd | getLowerPeriodic (int axis, const Vecd &point) |
Public Member Functions inherited from SPH::TransformShape< GeometricShapeBox > | |
TransformShape (const Transformd &transformd, ConstructorArgs &&...args) | |
Transformd & | getTransform () |
void | setTransform (const Transformd &transformd) |
virtual bool | checkContain (const Vecd &input_pnt, bool BOUNDARY_INCLUDED=true) override |
virtual Vecd | findClosestPoint (const Vecd &input_pnt) override |
Public Member Functions inherited from SPH::GeometricShapeBox | |
GeometricShapeBox (const Vec2d &halfsize, const std::string &shape_name="GeometricShapeBox") | |
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) |
Additional Inherited Members | |
Protected Member Functions inherited from SPH::TransformShape< GeometricShapeBox > | |
virtual BoundingBox | findBounds () override |
Protected Attributes inherited from SPH::TransformShape< GeometricShapeBox > | |
Transformd | transformd_ |
Protected Attributes inherited from SPH::GeometricShapeBox | |
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_ |
Used to describe a bounding box in which the plane vertical to axis direction is aligned to a planar piece of a shape.
|
inlineexplicit |
construct directly
|
inlineexplicit |
construct from a shape already has aligned boundaries