public void ScanPackage(ScannerItem si, SimPe.Cache.PackageState ps, System.Windows.Forms.ListViewItem lvi) { SimPe.Interfaces.Files.IPackedFileDescriptor[] pfds = si.Package.FindFiles(Data.MetaData.GMDC); //ArrayList list = new ArrayList(); ps.State = TriState.True; uint fct = 0; uint vct = 0; foreach (SimPe.Interfaces.Files.IPackedFileDescriptor pfd in pfds) { SimPe.Plugin.Rcol rcol = new GenericRcol(); rcol.ProcessData(pfd, si.Package, true); SimPe.Plugin.GeometryDataContainer gmdc = rcol.Blocks[0] as SimPe.Plugin.GeometryDataContainer; foreach (SimPe.Plugin.Gmdc.GmdcGroup g in gmdc.Groups) { fct += (uint)g.FaceCount; vct += (uint)g.UsedVertexCount; } rcol.Dispose(); } ps.Data = new uint[] { vct, fct }; UpdateState(si, ps, lvi); }
public GeometryDataContainerExt(GeometryDataContainer gmdc, bool withjoints) { joints = withjoints; this.gmdc = gmdc; txtrmap = new Hashtable(); txmtmap = new Hashtable(); }
public void Dispose() { txtrmap.Clear(); txmtmap.Clear(); gmdc = null; }
public GeometryDataContainerExt(GeometryDataContainer gmdc) : this(gmdc, true) { }