main method now invokes cleanpoints before computing orientation