Structure of compact stars: A pure geometric approach