int nsize = rs.points.size();
if (nsize > 0) {
boolean survivor[] = new boolean[nsize];
cullRamerDouglasPeucer(survivor, 0, nsize - 1);
if (!isCancelled()) {
<BUG>culled = new ArrayList();
</BUG>
survivor[0] = true;
for (int i = 0; i < nsize; i++) {
if (survivor[i]) {

int nsize = rs.points.size();
if (nsize > 0) {
boolean survivor[] = new boolean[nsize];
cullRamerDouglasPeucer(survivor, 0, nsize - 1);
if (!isCancelled()) {
culled = new ArrayList<>();
survivor[0] = true;
for (int i = 0; i < nsize; i++) {
if (survivor[i]) {
