basic example change targetPointCount
fixed crash bug if a poly is empty