/// <summary> /// Applies a Cut feature with a shape /// </summary> /// <param name = "document">Document that holds data tree</param> /// <param name="shape"></param> /// <param name="depth"></param> /// <param name="cutType"></param> public static Node Cut(Document document, Node sketchNode, double depth, CutTypes cutType) { var builder = new NodeBuilder(document, FunctionNames.Cut); builder[0].Reference = sketchNode; builder[1].Real = depth; builder[2].Integer = cutType == CutTypes.ToDepth ? 0 : 1; builder.ExecuteFunction(); return(builder.Node); }
public static Node CreateCut(Document document, Node referedShape, double height, CutTypes type) { return(TreeUtils.Cut(document, referedShape, height, type)); }
public static Node CreateCut(Node node, Node referedShape, double height, CutTypes type) { return(Features.Cut(node, referedShape, height, type)); }