eryar

PipeCAD - Plant Piping Design Software.
RvmTranslator - Translate AVEVA RVM to OBJ, glTF, etc.
posts - 603, comments - 590, trackbacks - 0, articles - 0

使用Mathematica绘制NURBS曲线

Posted on 2012-06-21 21:53 eryar 阅读(2015) 评论(0)  编辑 收藏 引用

在Mathematica软件中,使用函数BSplineCurve来根据控制顶点绘制NURBS曲线。

BSplineCurve的默认选项有如下:

  • By default, BSplineCurve uses cubic splines;
  • By default, knots are chosen uniformly in parameter space, with additional knots added so that the curve starts at the first control point and ends at the last one;
  • With the default setting SplineWeights->Automatic, all control points are chosen to have equal weights, corresponding to a polynomial B-spline curve;

基本实例:

Basic Example

圆的NURBS曲线表示:

不同节点矢量和权因子的情况:

NURBS Circle 1

情况2:

NURBS Circle 2

使用软件可对书中的理论进行验证,加深对知识点的理解。


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理