Public Member Functions | Public Attributes | Protected Member Functions | List of all members
hpp::fcl::Plane Class Reference

Infinite plane. More...

#include <hpp/fcl/shape/geometric_shapes.h>

Inheritance diagram for hpp::fcl::Plane:
[legend]
Collaboration diagram for hpp::fcl::Plane:
[legend]

Public Member Functions

 Plane (const Vec3f &n_, FCL_REAL d_)
 Construct a plane with normal direction and offset. More...
 
 Plane (FCL_REAL a, FCL_REAL b, FCL_REAL c, FCL_REAL d_)
 Construct a plane with normal direction and offset. More...
 
 Plane ()
 
FCL_REAL signedDistance (const Vec3f &p) const
 
FCL_REAL distance (const Vec3f &p) const
 
void computeLocalAABB ()
 Compute AABB. More...
 
NODE_TYPE getNodeType () const
 Get node type: a plane. More...
 
- Public Member Functions inherited from hpp::fcl::ShapeBase
 ShapeBase ()
 
OBJECT_TYPE getObjectType () const
 Get object type: a geometric shape. More...
 
- Public Member Functions inherited from hpp::fcl::CollisionGeometry
 CollisionGeometry ()
 
virtual ~CollisionGeometry ()
 
void * getUserData () const
 get user data in geometry More...
 
void setUserData (void *data)
 set user data in geometry More...
 
bool isOccupied () const HPP_FCL_DEPRECATED
 whether the object is completely occupied More...
 
bool isFree () const HPP_FCL_DEPRECATED
 whether the object is completely free More...
 
bool isUncertain () const HPP_FCL_DEPRECATED
 whether the object has some uncertainty More...
 
virtual Vec3f computeCOM () const
 compute center of mass More...
 
virtual Matrix3f computeMomentofInertia () const
 compute the inertia matrix, related to the origin More...
 
virtual FCL_REAL computeVolume () const
 compute the volume More...
 
virtual Matrix3f computeMomentofInertiaRelatedToCOM () const
 compute the inertia matrix, related to the com More...
 

Public Attributes

Vec3f n
 Plane normal. More...
 
FCL_REAL d
 Plane offset. More...
 
- Public Attributes inherited from hpp::fcl::CollisionGeometry
Vec3f aabb_center
 AABB center in local coordinate. More...
 
FCL_REAL aabb_radius
 AABB radius. More...
 
AABB aabb_local
 AABB in local coordinate, used for tight AABB when only translation transform. More...
 
void * user_data
 pointer to user defined data specific to this object More...
 
FCL_REAL cost_density
 collision cost for unit volume More...
 
FCL_REAL threshold_occupied
 threshold for occupied ( >= is occupied) More...
 
FCL_REAL threshold_free
 threshold for free (<= is free) More...
 

Protected Member Functions

void unitNormalTest ()
 Turn non-unit normal into unit. More...
 

Detailed Description

Infinite plane.

Constructor & Destructor Documentation

hpp::fcl::Plane::Plane ( const Vec3f n_,
FCL_REAL  d_ 
)
inline

Construct a plane with normal direction and offset.

hpp::fcl::Plane::Plane ( FCL_REAL  a,
FCL_REAL  b,
FCL_REAL  c,
FCL_REAL  d_ 
)
inline

Construct a plane with normal direction and offset.

hpp::fcl::Plane::Plane ( )
inline

Member Function Documentation

void hpp::fcl::Plane::computeLocalAABB ( )
virtual

Compute AABB.

Implements hpp::fcl::CollisionGeometry.

FCL_REAL hpp::fcl::Plane::distance ( const Vec3f p) const
inline
NODE_TYPE hpp::fcl::Plane::getNodeType ( ) const
inlinevirtual

Get node type: a plane.

Reimplemented from hpp::fcl::CollisionGeometry.

References hpp::fcl::GEOM_PLANE.

FCL_REAL hpp::fcl::Plane::signedDistance ( const Vec3f p) const
inline
void hpp::fcl::Plane::unitNormalTest ( )
protected

Turn non-unit normal into unit.

Member Data Documentation

FCL_REAL hpp::fcl::Plane::d
Vec3f hpp::fcl::Plane::n