Add option to extract primitives in cross-section

This enables us to just look for primitives at a certain height, making table detection a lot faster.