AddPipe第2和第3个参数分别是什么内容?

4
回复
4606
查看
打印 上一主题 下一主题
[复制链接]

微信扫一扫 分享朋友圈

签到天数: 10 天

连续签到: 1 天

[LV.3]三顾茅庐

1
发表于 2013-2-27 17:42:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 gyhk02 于 2013-2-27 17:44 编辑

好奇怪,我有个关于pipe的帖子不见了。所以只好新开一个帖子了。

AddPipe(curve_id, parameters, radii, blend_type=0, cap=0, fit=False)

第二个参数和第三个参数分别是什么?我没有试出来。
请大师教我一下
谢了
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏
收藏0
支持
支持0
反对
反对0
订阅 Rhino 最新资讯
回复

使用道具 举报

签到天数: 3041 天

连续签到: 1 天

[LV.Master]开坛元老

2
发表于 2013-2-28 10:08:16 | 只看该作者
帮助写得很清楚
建议你看看帮助


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).

回复 支持 反对

使用道具 举报

签到天数: 10 天

连续签到: 1 天

[LV.3]三顾茅庐

3
 楼主| 发表于 2013-3-4 08:27:15 | 只看该作者
modem

你好人做到底,给我一个简单的代码,好不好?谢了!

我还是试了半天没试出效果来,拜托了。
回复 支持 反对

使用道具 举报

签到天数: 10 天

连续签到: 1 天

[LV.3]三顾茅庐

4
 楼主| 发表于 2013-3-31 13:42:49 | 只看该作者
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)
       
回复 支持 反对

使用道具 举报

签到天数: 94 天

连续签到: 1 天

[LV.6]常住会员

5
发表于 2013-5-15 11:00:08 | 只看该作者
强烈支持楼主ing……
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

15927211580

周一至周五 9:30-18:00

武汉市武昌区中山路380号201

  • 关注微信公众号

  • 微信咨询客服号

QQ- Archiver- 鄂ICP备12016959号   充值M币 |勋章中心 | ( 鄂ICP备12016959号 )

Powered by Discuz!X3.2© 2001-2013 Comsenz Inc.

金融信息行业协会理事单位 | 信息服务业行业协会会员单位 | 网络信贷服务业企业联盟单位