找回密码
 注册
搜索
查看: 25892|回复: 4

[在线求助] 求助2.0

[复制链接]
发表于 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?
发表于 2011-1-1 01:50:15 | 显示全部楼层
语法上讲vb的括号有函数和数组元素的意思

这里arrplane应该是个数组啦
回复

使用道具 举报

发表于 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

帮助里写的很清楚
回复

使用道具 举报

 楼主| 发表于 2011-1-2 18:19:15 | 显示全部楼层
多谢,刚学不多久,容易把某些概念弄混,现在感觉清楚多了,再谢过
回复

使用道具 举报

发表于 2011-3-23 11:04:13 | 显示全部楼层
aaaaaaaaaaaaaaaaaaaaa
回复

使用道具 举报

NCFZ微信公众号

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

GMT+8, 2026-11-23 19:26 , Processed in 0.038279 second(s), 19 queries , Gzip On.

Powered by Discuz! X5.0 Licensed

© 2001-2026 Discuz! Team.

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