Using gl-meshhelper you can take unorganized vertex data in the format that gl-meshhelper uses and get clean vertex data and index data