zoukankan      html  css  js  c++  java
  • 样条曲线

    //样条曲线
            public static NurbCurve3d ToNurbCurve3d(Spline spl)
            {
                NurbsData ndata = spl.NurbsData;
                KnotCollection knots = new KnotCollection();
                foreach (Double knot in ndata.GetKnots())
                {
                    knots.Add(knot);
                }
                if (ndata.Rational)
                {
                    return
                        new NurbCurve3d(
                            ndata.Degree,
                            knots,
                            ndata.GetControlPoints(),
                            ndata.GetWeights(),
                            ndata.Periodic);
                }
                else
                {
                    return
                        new NurbCurve3d(
                            ndata.Degree,
                            knots,
                            ndata.GetControlPoints(),
                            ndata.Periodic);
                }
            }
  • 相关阅读:
    Servlet获取URL地址
    js实现浏览器通知功能
    利用Hibernate监听器实现用户操作日志
    XMLHttpRequest上传文件实现进度条
    事务配置中的一些要点
    Spring事务配置的五种方式
    基于注解的Spring AOP的配置和使用
    @ResponseBody注解与JSON
    springMVC获取request和response
    Highcharts属性介绍
  • 原文地址:https://www.cnblogs.com/houlinbo/p/1628780.html
Copyright © 2011-2022 走看看