Data optimization for 3d modeling and analysis of a fortress architecture