Set up main building function BuildPolyDetail, which will use both the mesh and the heightfield data for construction.