AddPipe第2和第3个参数分别是什么内容?
本帖最后由 gyhk02 于 2013-2-27 17:44 编辑好奇怪,我有个关于pipe的帖子不见了。所以只好新开一个帖子了。
AddPipe(curve_id, parameters, radii, blend_type=0, cap=0, fit=False)
第二个参数和第三个参数分别是什么?我没有试出来。
请大师教我一下
谢了 帮助写得很清楚
建议你看看帮助
strCurve
Required.String.The identifier of the path curve object.
arrParameters
Required.Array.An array of one or more curve parameters where changes in radius occur.
arrRadii
Required.Array.An array of radii; one at each curve parameter in arrParameters.
intType
Optional.Number.The type of shape blending, where:
Value
Description
0 (Default)
Local.The pipe radius stays constant at the ends and changes more rapidly in the middle.
1
Global.The radius is linearly blended from one end to the other, creating pipes that taper from one radius to the other.
intCap
Optional.Number.The end cap mode, where:
Value
Description
0 (Default)
None.
1 (Default)
Flat.Capped with a planar surface.
2
Round.Capped with hemispherical surface.
blnFit
Optional.Boolean.If the curve is a polycurve of lines and arcs, the curve is fit and a single surface is created; otherwise the result is a polysurface with joined surfaces created from the polycurve segments.The default is not to fit (False).
modem
你好人做到底,给我一个简单的代码,好不好?谢了!
我还是试了半天没试出效果来,拜托了。 modem,前段时间整别的去 了。
今天自己捉摸了一下。还真的出来了,太谢谢你了。
Dim dblLen, arrPoint, strObject
Dim endPoint
strObject = rhino.GetObject("please select a curve", 4)
endPoint = rhino.CurveEndPoint(strObject)
dblLen = Rhino.CurveClosestPoint(strObject, endPoint)
rhino.AddPipe strObject, array(0, dblLen / 2, dblLen), array(0.5, 0.5, 0.5)
强烈支持楼主ing……
页:
[1]