using tb_remove_if for finishing the raster contour
optimizate to append points for the vertex raster