osg fbx 模型结构操作

 

osg::Node* TeslaManage::findOsgNodeByName(QString &nodeNme)
{
    osg::Node* findNode = NULL;
    std::vector<osg::Node*>::iterator vec_iter;
    for (vec_iter = allOsgNode.begin();vec_iter != allOsgNode.end();++vec_iter)
    {
        osg::Node *node_index = *vec_iter;
        if (QString::fromStdString(node_index->getName())==nodeNme)
        {
            //findNode = node_index;
            return node_index;
        }
    }
    return findNode;
}

 

猜你喜欢

转载自www.cnblogs.com/herd/p/11185101.html
0条评论
添加一条新回复