A non-transitory computer readable medium having instructions stored thereon for modeling a three-dimensional structure utilizing two-dimensional segments which, when executed by a processor, causes the processor to carry out the steps of:
- extracting a plurality of two-dimensional segments corresponding to the three-dimensional structure from a plurality of images indicative of different views of the three-dimensional structure;
- determining a plurality of three-dimensional candidate segments based on the extracted plurality of two-dimensional segments;
- adding the plurality of three-dimensional candidate segments to a three-dimensional segment cloud;
- and
- transforming the three-dimensional segment cloud into a wireframe indicative of the three-dimensional structure by performing a wireframe extraction process on the three-dimensional segment cloud.