private static AddLine ( Canguro model, Joint ji, Joint jj, |
||
model | Canguro | The Model object |
ji | Joint | The initial Joint |
jj | Joint | The final Joint |
props | Frame properties for the Line Element | |
newJoints | List |
List of new Joints to use in Join |
newLines | List |
List of new Line Elements to use in Join |
Résultat | void |
private static void AddLine(Canguro.Model.Model model, Joint ji, Joint jj, StraightFrameProps props, List<Joint> newJoints, List<LineElement> newLines)
{
if (ji != null && jj != null)
{
model.JointList.Add(ji);
model.JointList.Add(jj);
LineElement elem = new LineElement(props, ji, jj);
newJoints.Add(ji);
newJoints.Add(jj);
newLines.Add(elem);
model.LineList.Add(elem);
}
}