Node =>Chamfer
Chamfer the node provided
The radius value varies from [0,1].
"removeNodeImmediatly" should be set to true if this is used outside editor.
public static void Node_Chamfer(SPData sPData, Node node, float radius, bool removeNodeImmediatly = false)
Example:
//get all the shared nodes of a sPData object var sharedNodes =SplinePlusAPI.Get_All_Shared_Nodes(sPData); var node =sharedNodes[0]; //Smooth the first shared node in the shared nodes list SplinePlusAPI.Node_Chamfer(sPData,node, 0.2f,true);