Wood radical on the left - the indexing radical. A ridgepole is the main wooden beam at the apex of a traditional Chinese roof, holding the whole structure together. From 'ridgepole' the meaning extended to 'whole building,' which is why
栋 became the measure word for buildings.