예제 #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     for (int i = 0; i < 100; i++)
     {
         Robot_call.Run_Analysis(true, mdl);
         Robot_call.Update_nodes(mdl.disp_z_cloth, mdl.disp_y_cloth, mdl.disp_z_cloth, mdl);
         Console.WriteLine(i);
     }
 }
예제 #2
0
 public static void Update_nodes(float[] x, float[] y, float[] z, Model mdl)
 {
     for (int i = 0; i < mdl.z.Length; i++)
     {
         IRobotNode node = (IRobotNode)robApp.Project.Structure.Nodes.Get(mdl.init_node + i);
         node.X += mdl.disp_x_cloth[i] * -1; //update z coordinate after first cloth run
         node.Y += mdl.disp_y_cloth[i] * -1; //update z coordinate after first cloth run
         node.Z += mdl.disp_z_cloth[i] * -1; //update z coordinate after first cloth run
     }
     Robot_call.Refresh();
 }
예제 #3
0
 public Form1()
 {
     InitializeComponent();
     Robot_call.Start();
 }
예제 #4
0
 public void get_geom()
 {
     Robot_call.Get_nodes(this);
 }