public void CopyCoordinates(JointCoordinateCollection jcol) { int indx = -1; try { for (int i = 0; i < list.Count; i++) { list[i].Node1 = jcol[jcol.IndexOf(list[i].Node1)]; list[i].Node2 = jcol[jcol.IndexOf(list[i].Node2)]; list[i].Node3 = jcol[jcol.IndexOf(list[i].Node3)]; list[i].Node4 = jcol[jcol.IndexOf(list[i].Node4)]; } } catch (Exception exx) { } }
public void CopyJointCoordinates(JointCoordinateCollection JntCol) { int iNode = 0, indx = -1; for (int i = 0; i < list.Count; i++) { try { indx = JntCol.IndexOf(list[i].StartNode); list[i].StartNode = JntCol[indx]; indx = JntCol.IndexOf(list[i].EndNode); list[i].EndNode = JntCol[indx]; } catch (Exception exx) { } } }
public void CopyFromCoordinateCollection(JointCoordinateCollection jcCol) { int indx = 0; for (int i = 0; i < list.Count; i++) { indx = jcCol.IndexOf(list[i].Node); if (indx != -1) { list[i].Node = jcCol[indx]; } } }