Hi,
I having problem updating my geometric vertex manually. First, I copy the
original node:
Code:
osg::ref_ptr<osg::Node> node =
dynamic_cast<osg::Node*>(original->clone(osg::CopyOp::DEEP_COPY_ALL));
.
After, I update the y coordinate of each Vertex according to the value of
reference
Code:
osg::Geometry* geoDst = geodeDst->getDrawable(i)->asGeometry();
osg::Vec3Array *adlDst = dynamic_cast<osg::Vec3Array
*>(geoDst->getVertexArray());
for(unsigned int i=0; i<adlSrc->getNumElements(); i++){
util::alterYValue(&adlDst->at(i), reference);
}
Some parts of result images not apper.
Any idea what might be happening?
Thank you!
Cheers,
Diego
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=44037#44037
Attachments:
http://forum.openscenegraph.org//files/2_940.png
http://forum.openscenegraph.org//files/1_663.png
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org