I need to sort vertices according their distance from a defined point. Given that my struct looks like this :
float distance; // distance from the viewpoint
unsigned int index; //index of the vertice in the array to sort
I’ve been looking at the CUDPP documentation and it seems that CUDPP doesn’t handle this kind of input ?! :unsure: ( sorting according distance but giving the result through index )
Am I wrong ?
Do you have any clues to perform this by another way ?