After generating points on the surface of our three-dimensional scene items, the algorithm filters points based on their visibility from CineMol's fixed viewpoint (Figure ). CineMol has a fixed view direction towards the origin along the positive z-axis. To speed up the algorithm, we sort scene items from farthest to nearest to the viewpoint based on the z-coordinate of their centroid.