SOFA API  6a688117
Open source framework for multi-physics simuation
sofa::component::collision::BodyPicked Struct Reference

#include <MouseInteractor.h>

Represents a point on an object. More...

Detailed Description

Represents a point on an object.

This requires not only the 3D location, but also the MechanicalState it is attached to.

Public Attributes

sofa::core::CollisionModelbody
 
sofa::core::behavior::BaseMechanicalStatemstate
 
sofa::defaulttype::index_type indexCollisionElement
 
defaulttype::Vector3 point
 
SReal dist
 
SReal rayLength
 

Public Member Functions

 BodyPicked ()
 
 operator bool ()
 

Attribute details

sofa::core::CollisionModel* sofa::component::collision::BodyPicked::body
SReal sofa::component::collision::BodyPicked::dist
sofa::defaulttype::index_type sofa::component::collision::BodyPicked::indexCollisionElement
sofa::core::behavior::BaseMechanicalState* sofa::component::collision::BodyPicked::mstate
defaulttype::Vector3 sofa::component::collision::BodyPicked::point
SReal sofa::component::collision::BodyPicked::rayLength

Constructor details

sofa::component::collision::BodyPicked::BodyPicked ( )
inline

Function details

sofa::component::collision::BodyPicked::operator bool ( )
inline