Visitor that collects intersections.
More...
#include <IntersectionVisitor.hh>
|
std::vector< Intersection > | intersections |
| This is the list of intersections found by the visitors during traversal. More...
|
|
std::vector< Eigen::Affine3f > | stack {Eigen::Affine3f::Identity()} |
|
Visitor that collects intersections.
Example usage:
gmGraphics::IntersectionVisitor iv
scenegraph_root->accept(&iv);
for (const auto &isec : iv.intersections) {
...
static IntersectionLine forwardRay(Eigen::Vector3f p0, Eigen::Vector3f dir)
Creates a IntersectionLine that has infinite forward extent, for intersection testing,...
Definition: IntersectionLine.cpp:14
◆ IntersectionVisitor()
gramods::gmGraphics::IntersectionVisitor::IntersectionVisitor |
( |
IntersectionLine |
line | ) |
|
|
inline |
Create a visitor for checking for intersection against the specified line.
◆ apply()
void gramods::gmGraphics::IntersectionVisitor::apply |
( |
gmCore::Object * |
node | ) |
|
|
overridevirtual |
◆ intersections
std::vector<Intersection> gramods::gmGraphics::IntersectionVisitor::intersections |
This is the list of intersections found by the visitors during traversal.
The documentation for this struct was generated from the following files:
- /home/karlu/private/program/gramods/modules/gmGraphics/include/gmGraphics/IntersectionVisitor.hh
- /home/karlu/private/program/gramods/modules/gmGraphics/src/IntersectionVisitor.cpp