Exemple #1
0
 private void addMultiplePointsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (CountForm form = new CountForm())
     {
         if (form.ShowDialog() == DialogResult.OK)
         {
             ModelEditorCore.AddPointBetweenSelectionPoints(this.editorWindow, form.Count);
         }
     }
 }
Exemple #2
0
        private void CreateConicCommon(GeometryConicType geometry)
        {
            using (GeometryConicForm form = new GeometryConicForm(geometry))
            {
                if (form.ShowDialog() == DialogResult.OK)
                {
                    switch (form.Geometry)
                    {
                    case GeometryConicType.Sphere:
                        ModelEditorCore.CreateModelSphere(this.editorWindow, Math.Max(2, form.Rows), Math.Max(3, form.Cols));
                        break;

                    case GeometryConicType.Cylinder:
                        ModelEditorCore.CreateModelCylinder(this.editorWindow, Math.Max(1, form.Rows), Math.Max(3, form.Cols));
                        break;

                    case GeometryConicType.Cone:
                        ModelEditorCore.CreateModelCone(this.editorWindow, Math.Max(1, form.Rows), Math.Max(3, form.Cols));
                        break;
                    }
                }
            }
        }
Exemple #3
0
 private void cubeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModelEditorCore.CreateModelCube(this.editorWindow);
 }
Exemple #4
0
 private void lLocalAxisToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModelEditorCore.EditorAxisLocal(this.editorWindow);
 }
Exemple #5
0
 private void sScalingModeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModelEditorCore.EditorModeScaling(this.editorWindow);
 }
Exemple #6
0
 private void rRotationModeToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModelEditorCore.EditorModeRotation(this.editorWindow);
 }
Exemple #7
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     ModelEditorCore.EditorModeVertexSelection(this.editorWindow);
 }
Exemple #8
0
 private void resetToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModelEditorCore.ResetView(this.editorWindow);
 }
Exemple #9
0
 private void timerRenderer_Tick(object sender, EventArgs e)
 {
     ModelEditorCore.RenderEditorWindow(this.editorWindow);
 }
Exemple #10
0
 private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     ModelEditorCore.DestroyEditorWindow(this.editorWindow);
     this.editorWindow = IntPtr.Zero;
 }
Exemple #11
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     this.workingDirectory = Path.GetDirectoryName(Application.ExecutablePath) + "\\";
     this.editorWindow     = ModelEditorCore.CreateEditorWindow(panelEditorWindow.Handle, this.workingDirectory);
     ModelEditorCore.RenderEditorWindow(this.editorWindow);
 }
Exemple #12
0
 private void pushVertexToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModelEditorCore.PushSelectedPoints(this.editorWindow);
 }
Exemple #13
0
 private void addPointToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModelEditorCore.AddPointBetweenSelectionPoints(this.editorWindow, 1);
 }
Exemple #14
0
 private void deleteLineToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModelEditorCore.DeleteSelectedLineBetweenSelectionPoints(this.editorWindow);
 }
Exemple #15
0
 private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ModelEditorCore.DeleteSelection(this.editorWindow);
 }