A Ray Query class used for retrieving mesh data of a visual, adapted from Ogre3D wiki. More...
#include <rendering/rendering.hh>
Public Member Functions | |
RayQuery (CameraPtr _camera) | |
Constructor. More... | |
~RayQuery () | |
Destructor. More... | |
bool | SelectMeshTriangle (int _x, int _y, VisualPtr _visual, math::Vector3 &_intersect, std::vector< math::Vector3 > &_vertices) GAZEBO_DEPRECATED(8.0) |
Select a triangle on mesh given screen coordinates. More... | |
bool | SelectMeshTriangle (const int _x, const int _y, const VisualPtr &_visual, ignition::math::Vector3d &_intersect, ignition::math::Triangle3d &_triangle) const |
Select a triangle on mesh given screen coordinates. More... | |
A Ray Query class used for retrieving mesh data of a visual, adapted from Ogre3D wiki.
Constructor.
[in] | _camera | Pointer to camera used for ray casting. |
~RayQuery | ( | ) |
Destructor.
bool SelectMeshTriangle | ( | int | _x, |
int | _y, | ||
VisualPtr | _visual, | ||
math::Vector3 & | _intersect, | ||
std::vector< math::Vector3 > & | _vertices | ||
) |
Select a triangle on mesh given screen coordinates.
[in] | _x | X position on screen in pixels. |
[in] | _y | Y position on screen in pixels. |
[in] | _visual | Visual containing the mesh to be selected. |
[out] | _intersect | Intersection point. |
[out] | _vertices | Vertices of the selected triangle on the mesh. |
bool SelectMeshTriangle | ( | const int | _x, |
const int | _y, | ||
const VisualPtr & | _visual, | ||
ignition::math::Vector3d & | _intersect, | ||
ignition::math::Triangle3d & | _triangle | ||
) | const |
Select a triangle on mesh given screen coordinates.
[in] | _x | X position on screen in pixels. |
[in] | _y | Y position on screen in pixels. |
[in] | _visual | Visual containing the mesh to be selected. |
[out] | _intersect | Intersection point. |
[out] | _triangle | The selected triangle on the mesh. |