33 #ifndef DART_DYNAMICS_PLANESHAPE_HPP_ 34 #define DART_DYNAMICS_PLANESHAPE_HPP_ 36 #include "dart/dynamics/Shape.hpp" 46 PlaneShape(
const Eigen::Vector3d& _normal,
double _offset);
49 PlaneShape(
const Eigen::Vector3d& _normal,
const Eigen::Vector3d& _point);
52 const std::string&
getType()
const override;
61 void setNormal(
const Eigen::Vector3d& _normal);
77 const Eigen::Vector3d& _normal,
const Eigen::Vector3d& _point);
87 void updateBoundingBox()
const override;
90 void updateVolume()
const override;
93 Eigen::Vector3d mNormal;
102 #endif // DART_DYNAMICS_PLANESHAPE_HPP_ double computeDistance(const Eigen::Vector3d &_point) const
Compute distance between the plane and the given point.
Definition: PlaneShape.cpp:115
void setNormalAndOffset(const Eigen::Vector3d &_normal, double _offset)
Set plane normal and offset.
Definition: PlaneShape.cpp:99
PlaneShape represents infinite plane has normal and offset as properties.
Definition: PlaneShape.hpp:42
const std::string & getType() const override
Returns a string representing the shape type.
Definition: PlaneShape.cpp:52
Definition: Aspect.cpp:40
void setNormalAndPoint(const Eigen::Vector3d &_normal, const Eigen::Vector3d &_point)
Set plane normal and point.
Definition: PlaneShape.cpp:107
Eigen::Matrix3d computeInertia(double mass) const override
Computes the inertia.
Definition: PlaneShape.cpp:65
const Eigen::Vector3d & getNormal() const
Get plane normal.
Definition: PlaneShape.cpp:79
double getOffset() const
Get plane offset.
Definition: PlaneShape.cpp:93
void setOffset(double _offset)
Set plane offset.
Definition: PlaneShape.cpp:85
static const std::string & getStaticType()
Returns shape type for this class.
Definition: PlaneShape.cpp:58
double computeSignedDistance(const Eigen::Vector3d &_point) const
Compute signed distance between the plane and the given point.
Definition: PlaneShape.cpp:121
PlaneShape(const Eigen::Vector3d &_normal, double _offset)
Constructor.
Definition: PlaneShape.cpp:39
void setNormal(const Eigen::Vector3d &_normal)
Set plane normal.
Definition: PlaneShape.cpp:71