NCF参数化建筑论坛

标题: 求助2.0 [打印本页]

作者: licml    时间: 2010-12-31 19:19
标题: 求助2.0
(以后我的求助都按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?
作者: panhao1    时间: 2011-1-1 01:50
语法上讲vb的括号有函数和数组元素的意思

这里arrplane应该是个数组啦
作者: 1235813    时间: 2011-1-2 17:40
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

帮助里写的很清楚
作者: licml    时间: 2011-1-2 18:19
多谢,刚学不多久,容易把某些概念弄混,现在感觉清楚多了,再谢过
作者: lu2007    时间: 2011-3-23 11:04
aaaaaaaaaaaaaaaaaaaaa




欢迎光临 NCF参数化建筑论坛 (http://www.ncf-china.com/) Powered by Discuz! X3.2