improved R::SampleEquidistantPoints()
fixed 'invisible scene bug' that happened in release mode
removed dead code