Printing search space using polygon points and implemented support for clustering