Primitive clipping part 1: information gathering.