Node
Create
// Create node
public static Node Node_Create(SPData sPData, Vector3 nodePos, SpaceType spaceType)
//Create node at distance
public static Node CreateNode_At_Distance(SPData sPData, int branchKey, float Distance)
Compound
public static void Node_Compound(SPData sPData, Node node)
Connected Branches
public static List<int> Node_Get_Connected_Branches(Node node)
Fuse
public static void Node_Fuse(SPData sPData,Node originNode, Node targetNode)
Diffuse
public static void Node_Diffuse(SPData sPData, Node node)
Duplicate
public static Node Node_Duplicate(SPData sPData, Node originNode)
Flip Handles
public static void Node_FlipHandles(SPData sPData, int BranchKey, int NodeIndex)
Handles
//Set Handles
public static void Node_Handles_Set_Position(SPData sPData, Node node, Vector3 point1Pos, Vector3 point2Pos, SpaceType spaceType, bool updateSpline = true)
//Get Handles
public static Vector3 Node_Get_Point1_Position(Node node, SpaceType spaceType)
Is node Shared?
public static bool Node_Is_Shared(Node node)
Normal
public static void Node_Set_Normal(SPData sPData, Node node, float NormalFactor)
Position
public static void Node_Set_Position(SPData sPData, Node node, Vector3 nodePos,SpaceType spaceType, bool updateSpline = true)
public static Vector3 Node_Get_Position(Node node, SpaceType spaceType)
Remove
public static void Node_Remove(SPData sPData, Node nodeToDelete)
Speed
// Set Speed
public static void Node_Set_Speed(SPData sPData, Node node, float speed)
//Get Speed
public static float Node_Get_Speed(Node node)
Type
//Set type
public static void Node_Set_Type(SPData sPData, Node node, NodeType newNodeType, bool updateSpline = true)
//Get type
public static NodeType Node_Get_Type( Node node )
Selected node
//get selected node
public static Node Node_Selected(this SPData sPData)