Branch=>Add Node To Branch
Begining
Add a node at the beginning of a branch,
Note
Note that nodes adding to branches can only be done to unwelded forks , all nodes adding actions to welded forkes are going to be ignored.
public static void Branch_Add_Node_Beginning(SPData sPData, int branchKey, Node nodeToAdd)
Example:
//Create a node to add to the branch Node nodeToAdd = Node_Create_Local(SPData,new Vector3(10,5,10)); //Add node to the beginning of branch with key 4 SplinePlusAPI.Branch_Add_Node_Beginning( sPData, 4, nodeToAdd);
End
Add a node at the end of a branch,
Note
Note that nodes adding to branches can only be done to unwelded forks , all nodes adding actions to welded forkes are going to be ignored.
public static void Branch_Add_Node_End(SPData sPData, int branchKey, Node nodeToAdd)
Example:
//Create a node to add to the branch Node node = Node_Create_Local(SPData,new Vector3(10,5,10)); //Add node to the end of branch with key 4 SplinePlusAPI.Branch_Add_Node_End( sPData, 4, node);
Index
Add a node at an index in the nodes list,
public static void Branch_Add_Node_At_Index(SPData sPData, int branchKey, Node nodeToAdd, int index)
Example:
//Create a node to add to the branch Node node = Node_Create_Local(SPData,new Vector3(10,5,10)); //Add node at index 3 in the nodes list of branch with key 4 SplinePlusAPI. Branch_Add_Node_At_Index( sPData, 4, node, 3);