public void Reset() { //TODO: Not really an elegant solution for (int i = 0; i < _constrainedSections.Count; ++i) { ConstrainedSection s = _constrainedSections[i] as ConstrainedSection; s.Node.Delete(); } _constrainedSections.Clear(); }
public bool RemoveConstraint(CoordinateSystemSceneNode n) { //TODO: Not really an elegant solution for (int i = 0; i < _constrainedSections.Count; ++i) { ConstrainedSection s = _constrainedSections[i] as ConstrainedSection; if (s != null && s.Node == n) { _constrainedSections.RemoveAt(i); _constraintConfigChanged = true; return(true); } } return(false); }