NDDDSample from https://code.google.com/p/ndddsample/