createBSpline#

创建一条B样条曲线#

图块代码

../../_images/createBSpline.png

javascript

jih_doc.createBSpline(name, closed, color)
jih_doc.endBSpline()

python

if True:
  jih_doc.createBSpline(name, closed, color)
  jih_doc.endBSpline()

npl

jih_doc:createBSpline(name, closed, color)
jih_doc:endBSpline()

参数#

参数

类型

默认值

说明

name

string

“curve1”

closed

string

“false”

color

string

“#ffc658”

示例#

jih_doc.createBSpline('curve1', false, "#ffc658")
jih_doc.endBSpline()
if True:
  jih_doc.createBSpline('curve1', false, "#ffc658")
  jih_doc.endBSpline()
jih_doc:createBSpline('curve1', false, "#ffc658")
jih_doc:endBSpline()