catmull example extended, now can hande infinite random points