コード例 #1
0
 /// <summary>Inserts an array of <see cref="Chisel.Core.CSGTreeNode"/>s into the <see cref="Chisel.Core.CSGTree"/> at the specified index.</summary>
 /// <param name="index">The zero-based index at which the new <see cref="Chisel.Core.CSGTreeNode"/>s should be inserted.</param>
 /// <param name="array">The array whose <see cref="Chisel.Core.CSGTreeNode"/>s should be inserted into the <see cref="Chisel.Core.CSGTree"/>. The array itself cannot be null.</param>
 /// <returns><b>true</b> on success, <b>false</b> on failure</returns>
 public bool InsertRange(int index, params CSGTreeNode[] array)
 {
     if (array == null)
     {
         throw new ArgumentNullException("array");
     }
     return(CSGTreeNode.InsertChildNodeRange(treeNodeID, index, array));
 }
コード例 #2
0
 /// <summary>Adds the <see cref="Chisel.Core.CSGTreeNode"/>s of the specified array to the end of the  <see cref="Chisel.Core.CSGTree"/>.</summary>
 /// <param name="array">The array whose <see cref="Chisel.Core.CSGTreeNode"/>s should be added to the end of the <see cref="Chisel.Core.CSGTree"/>. The array itself cannot be null.</param>
 /// <returns><b>true</b> on success, <b>false</b> on failure</returns>
 public bool AddRange(params CSGTreeNode[] array)
 {
     if (array == null)
     {
         throw new ArgumentNullException("array");
     }
     return(CSGTreeNode.InsertChildNodeRange(treeNodeID, Count, array));
 }