NCF参数化建筑论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 14606|回复: 4
打印 上一主题 下一主题

[在线求助] 求助2.0

[复制链接]
跳转到指定楼层
1m
发表于 2010-12-31 19:19:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
(以后我的求助都按n.0的方式来做,1年之后,看自己能求助多少,{:3_53:})



Dim arrPlane, arrRotated


arrPlane = Rhino.WorldXYPlane


arrRotated = Rhino.RotatePlane(arrPlane, 45.0, arrPlane(3))


Rhino.AddArc arrRotated, 5.0, 45.0

arrPlane(3)这个什么意思啊?怎么突然出现个3?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享分享
2m
发表于 2011-1-1 01:50:15 | 只看该作者
语法上讲vb的括号有函数和数组元素的意思

这里arrplane应该是个数组啦
3m
发表于 2011-1-2 17:40:31 | 只看该作者
RotatePlane
Rotates a plane.

Syntax
Rhino.RotatePlane (arrPlane, dblAngle, arrAxis)

Parameters
arrPlane
Required.  Array.  The plane.  The elements of a plane array are as follows:

Element
Description

0
Required.  The plane's origin (3-D point).

1
Required.  The plane's X axis direction (3-D vector).

2
Required.  The plane's Y axis direction (3-D vector).

3
Optional.  The plane's Z axis direction (3-D vector).


dblAngle
Required.  Number.  The rotation angle in degrees.

arrAxis
Required.  Array.  A non-zero 3-D vector identifying the axis of rotation.


Returns
Array
The plane if successful.  The elements of a plane array are as follows:

Element
Description

0
The plane's origin (3-D point).

1
The plane's X axis direction (3-D vector).

2
The plane's Y axis direction (3-D vector).

3
The plane's Z axis direction (3-D vector).


Null
If not successful, or on error.


Example
Dim arrPlane, arrRotated

arrPlane = ViewCPlane

arrRotated = RotatePlane(arrPlane, 45.0, arrPlane(1))

Rhino.ViewCPlane , arrRotated

帮助里写的很清楚
4m
 楼主| 发表于 2011-1-2 18:19:15 | 只看该作者
多谢,刚学不多久,容易把某些概念弄混,现在感觉清楚多了,再谢过
5m
发表于 2011-3-23 11:04:13 | 只看该作者
aaaaaaaaaaaaaaaaaaaaa

小黑屋|手机版|NCF参数化建筑论坛 ( 浙ICP备2020044100号-2 )    辽公网安备21021102000973号

GMT+8, 2024-5-3 03:21 , Processed in 0.301609 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表