private void DefaultToolStripMenuItem_Click(object sender, EventArgs e) { cloth = new Cloth(); cloth.addSphere(Vector3.Zero, rSphere); showToolStripMenuItem.Enabled = true; simulationToolStripMenuItem.Enabled = true; clearToolStripMenuItem.Enabled = true; dMesh = true; showMeshToolStripMenuItem.Checked = dMesh; dSphere = true; xSphere = 0; ySphere = 0; zSphere = 0; }
private void meshParamsToolStripMenuItem_Click(object sender, EventArgs e) { fMesh.ShowDialog(); if (fMesh.cloth != null) { cloth = fMesh.cloth; cloth.addSphere(Vector3.Zero, rSphere); showToolStripMenuItem.Enabled = true; simulationToolStripMenuItem.Enabled = true; clearToolStripMenuItem.Enabled = true; dMesh = true; showMeshToolStripMenuItem.Checked = dMesh; dSphere = true; xSphere = 0; ySphere = 0; zSphere = 0; } }