Branch=>Create

Create a new branch at the node provided and return the branch key,

public static int Branch_Create(SPData sPData, Node originNode)

Example:

//create 2 nodes in the sPData object
var node1 = SplinePlusAPI.Node_Create_Local(sPData, new Vector3(-20, 0, 0));
var node2 = SplinePlusAPI.Node_Create_Local(sPData, new Vector3(10, 0, 0));

//create a new branch
var branchKey = SplinePlusAPI.Branch_Create(sPData);

// add nodes to the end of the branch
SplinePlusAPI.Node_Add_To_Branch_End(sPData, branchKey, node1);
SplinePlusAPI.Node_Add_To_Branch_End(sPData, branchKey, node2);