示例#1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (u_x1_3.Text == "" || u_x2_3.Text == "" || u_y1_3.Text == "" || u_y2_3.Text == "")
            {
                MessageBox.Show("Please Input All The Co-ordinates.");
            }
            else
            {
                Genetibase.MathX.NuGenStructures.NuGenPnt3D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt3D();
                Genetibase.MathX.NuGenStructures.NuGenVec3D obj2 = new Genetibase.MathX.NuGenStructures.NuGenVec3D();

                obj1._x = new double[3];
                obj2._x = new double[3];

                obj1._x[0] = double.Parse(u_x1_3.Text);
                obj1._x[1] = double.Parse(u_y1_3.Text);
                obj1._x[2] = double.Parse(u_h1.Text);

                obj2._x[0] = double.Parse(u_x2_3.Text);
                obj2._x[1] = double.Parse(u_y2_3.Text);
                obj2._x[2] = double.Parse(u_h2.Text);


                ray = new NuGenRay3D(obj1, obj2);

                button_add_3.Enabled = true;
            }
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (u_x1_3.Text == "" || u_x2_3.Text == "" || u_y1_3.Text == "" || u_y2_3.Text == "")
            {
                MessageBox.Show("Please Input All The Co-ordinates.");

            }
            else
            {
                Genetibase.MathX.NuGenStructures.NuGenPnt3D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt3D();
                Genetibase.MathX.NuGenStructures.NuGenVec3D obj2 = new Genetibase.MathX.NuGenStructures.NuGenVec3D();

                obj1._x = new double[3];
                obj2._x = new double[3];

                obj1._x[0] = double.Parse(u_x1_3.Text);
                obj1._x[1] = double.Parse(u_y1_3.Text);
                obj1._x[2] = double.Parse(u_h1.Text);     

                obj2._x[0] = double.Parse(u_x2_3.Text);
                obj2._x[1] = double.Parse(u_y2_3.Text);
                obj2._x[2] = double.Parse(u_h2.Text);
    

                ray = new NuGenRay3D(obj1, obj2);

                button_add_3.Enabled = true;


            }
        }
示例#3
0
        private void button_add_3_Click(object sender, EventArgs e)
        {
            string str1 = "1";

            str1 = Interaction.InputBox("Please Enter a Float value of which you need Find The Position :", "Float Value", "1", 30, 30);
            Genetibase.MathX.NuGenStructures.NuGenPnt3D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt3D();

            obj1 = ray.GetPointOnRay(double.Parse(str1));

            u_x_3.Text = obj1._x[0].ToString();
            u_y_3.Text = obj1._x[1].ToString();
            u_h.Text   = obj1._x[2].ToString();
        }
示例#4
0
        private void button_add_3_Click(object sender, EventArgs e)
        {
            string str1 = "1";
            str1 = Interaction.InputBox("Please Enter a Float value of which you need Find The Position :", "Float Value", "1", 30, 30);
            Genetibase.MathX.NuGenStructures.NuGenPnt3D obj1 = new Genetibase.MathX.NuGenStructures.NuGenPnt3D();

            obj1 = ray.GetPointOnRay(double.Parse(str1));

            u_x_3.Text = obj1._x[0].ToString();
            u_y_3.Text = obj1._x[1].ToString();
            u_h.Text = obj1._x[2].ToString();    


        }