摘要:
public void AddContextMenu() { //定义一个ContextMenuExtension对象,用于表示快捷菜单 ContextMenuExtension contextMenu = new ContextMenuExtension(); //设置快捷菜单的标题 contextMenu.Title = "动态对象菜单"; //添加一个名为"建立曲线"的菜单项,用于调用建立曲... 阅读全文
摘要:
//样条曲线 public static NurbCurve3d ToNurbCurve3d(Spline spl) { NurbsData ndata = spl.NurbsData; KnotCollection knots = new KnotCollection(); foreach (Double knot in ndata.GetKnots()) { knots.Add(knot); ... 阅读全文