摘要: public void AddContextMenu() { //定义一个ContextMenuExtension对象,用于表示快捷菜单 ContextMenuExtension contextMenu = new ContextMenuExtension(); //设置快捷菜单的标题 contextMenu.Title = "动态对象菜单"; //添加一个名为"建立曲线"的菜单项,用于调用建立曲... 阅读全文
posted @ 2009-12-21 18:49 houlinbo 阅读(962) 评论(0) 推荐(0) 编辑
摘要: //样条曲线 public static NurbCurve3d ToNurbCurve3d(Spline spl) { NurbsData ndata = spl.NurbsData; KnotCollection knots = new KnotCollection(); foreach (Double knot in ndata.GetKnots()) { knots.Add(knot); ... 阅读全文
posted @ 2009-12-21 13:04 houlinbo 阅读(499) 评论(0) 推荐(0) 编辑