A numerical method to analyse compact cross-sections