Now the front code is working properly and the performance acceptable. Next step is to find a way to change the point set in the gpu based on the front changes.