void SSceneSummary::SObjectInfo::Prepare() { bReady = true; if (object_name.size()){ CEditableObject* O = Lib.CreateEditObject(object_name.c_str()); xr_string pref = object_name.c_str(); if (O){ SPairInfo tmp; tmp.first = pref+"\\References"; tmp.second = _itoa(ref_count); info.push_back (tmp); tmp.first = pref+"\\Geometry\\Faces"; tmp.second = _itoa(O->GetFaceCount()); info.push_back (tmp); tmp.first = pref+"\\Geometry\\Vertices"; tmp.second = _itoa(O->GetVertexCount()); info.push_back (tmp); SurfaceVec& surfaces = O->Surfaces(); for (SurfaceIt it=surfaces.begin(); it!=surfaces.end(); it++){ xr_string pr= pref+xr_string("\\Materials\\")+(*it)->_Name(); tmp.first = pr+"\\Texture"; tmp.second = (*it)->_Texture(); info.push_back (tmp); tmp.first = pr+"\\Faces"; tmp.second = _itoa(O->GetSurfFaceCount((*it)->_Name()));info.push_back (tmp); } Lib.RemoveEditObject(O); } }else{ Msg("!Empty object name found."); } }