added error checking for pulling of mesh with unsupported mode
Updated example to rebuild necessary primitives if they are not in the supported mode for pulling out their meshes