Action::ResultE IntersectAction::onEnterNode(Node* node, Action* action)
{
    OSG_ASSERT(this == action && node == _actNode);

    ResultE result = Continue;

    IntersectProxyAttachment* ipa = dynamic_cast<IntersectProxyAttachment*>(
        node->findAttachment(IntersectProxyAttachment::getClassType()));

    if(ipa != NULL)
    {
        result = ipa->intersectEnter(node, this);
    }

    return result;
}
Esempio n. 2
0
Action::ResultE IntersectAction::onEnterNode(Node* node, Action* action)
{
    OSG_ASSERT(this == action && node == _actNode);

    ResultE result = Continue;

    _path.push_back(node);

    _statistics->getElem(statNNodes)->inc();

    IntersectProxyAttachment* ipa = dynamic_cast<IntersectProxyAttachment*>(
        node->findAttachment(IntersectProxyAttachment::getClassType()));

    if(ipa != NULL)
    {
        result = ipa->intersectEnter(node, this);
    }

    return result;
}