/// <summary> /// Initializes a new instance of the <see cref="PortalViewer"/> class. /// </summary> /// <param name="meta">The meta.</param> /// <remarks></remarks> public PortalViewer(ref Meta meta) { // Set the initial size of our form this.ClientSize = new Size( Screen.PrimaryScreen.WorkingArea.Width - 4, Screen.PrimaryScreen.WorkingArea.Height - 4); // And its caption this.Text = "Model Viewer"; this.MouseDown += ModelViewer_MouseDown; this.MouseMove += this.ModelViewer_MouseDownx; this.MouseUp += this.ModelViewer_MouseUp; portals = Portals.GetPortals(ref meta); bsp = new BSPModel(ref meta); faceCount = new int[bsp.BSPRawDataMetaChunks.Length]; for (int x = 0; x < bsp.BSPRawDataMetaChunks.Length; x++) { faceCount[x] = bsp.BSPRawDataMetaChunks[x].FaceCount; } bsp.DrawBSPPermutations = false; Main(); }