Spectral Sampling of Manifolds: Code
Cengiz Oztireli

--------------------------------------------------------------------

This code can be used to resample point-based surface representations. It takes points with normals as input and produces a resampling on the MLS surface [1] using a spectral sampling technique [2].

It is written and tested on Windows OS and a Visual Studio solution is also provided.

[1] Feature Preserving Point Set Surfaces based on Non-Linear Kernel Regression
[2] Spectral Sampling of Manifolds

--------------------------------------------------------------------


Usage:

spectralsampling inputFile outputFile sigmaP sigmaN

Parameters:

Where the kernel used for sampling is (p: position of a point, n: normal at a point): 
k(x, x_i) = exp(-|| p - p_i ||^2 / sigmaP^2 - || n - n_i ||^2 / sigmaN^2).


File Format:

--------------------

{NumberOfPoints}
x1 y1 z1 nx1 ny1 nz1
x2 y2 z2 nx2 ny2 nz2
.
.
.

--------------------