Hi Robert,
Your sort functor would take a reference to the Vec3Array+lookvector or an array of the distances to sort against and then make decision of < based on the dereferencing the indices. Preparing an array of distances based would mean you only do the compute of the distance once per vertex, rather twice per< check of which there will nlogn.
Thanks for your guidance, you did everything except code it up for me :-) J-S -- ______________________________________________________ Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org