#include "meshoptimizer.h"
#include <assert.h>
#include <float.h>
#include <string.h>
namespace meshopt
{
inline unsigned int part1By2(unsigned int x)
{ … }
static void computeOrder(unsigned int* result, const float* vertex_positions_data, size_t vertex_count, size_t vertex_positions_stride)
{ … }
static void computeHistogram(unsigned int (&hist)[1024][3], const unsigned int* data, size_t count)
{ … }
static void radixPass(unsigned int* destination, const unsigned int* source, const unsigned int* keys, size_t count, unsigned int (&hist)[1024][3], int pass)
{ … }
}
void meshopt_spatialSortRemap(unsigned int* destination, const float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
{ … }
void meshopt_spatialSortTriangles(unsigned int* destination, const unsigned int* indices, size_t index_count, const float* vertex_positions, size_t vertex_count, size_t vertex_positions_stride)
{ … }