Wireframes are only sorted based on their centroid before drawing. For the remaining points, the algorithm projects their x and y coordinates using a provided focal length (Figure ) and then disposes of the z-coordinate to create a two-dimensional projection (Figure ). Now, each item comprises a two-dimensional point cloud, representing projected surface points visible from CineMol's viewpoint, considering that items will be drawn based on their initial z-axis distance to CineMol's point of view. To establish the smallest encapsulating polygon outlining each point cloud, the quickhull (a two-dimensional algorithm to find a convex hull )) is applied (Figure ). The polygons are then drawn from the furthest away to most nearby to CineMol's point of view, and the supplied fill is applied as styling (Figure ). This fill can be either solid, for a cartoon style, or a gradient for a glossy look (i.e., radial-gradient for spheres and a linear gradient for cylinders). Wireframes can only be styled based on the provided stroke color.