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); } }
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(); }
public Form1() { InitializeComponent(); Robot_call.Start(); }
public void get_geom() { Robot_call.Get_nodes(this); }