Construct a plane from a point, and two vectors in the plane.
Rhino.PlaneFromFrame (arrOrigin, arrXaxis, arrYaxis)
arrOrigin |
Required. Array. A 3-D point identifying the origin of the plane. |
arrXaxis |
Required. Array. A non-zero 3-D vector in the plane that determines the X axis direction. |
arrYaxis |
Required. Array. A non-zero 3-D vector not parallel to arrXaxis that is used to determine the Y axis direction. Note, arrYaxis does not have to be perpendicular to arrXaxis. |
Array |
The plane if successful. The elements of a plane array are as follows:
|
||||||||||
Null |
If not successful, or on error. |
Dim arrOrigin, arrXaxis, arrYaxis
arrOrigin = Rhino.GetPoint("CPlane origin")
If IsArray(arrOrigin) Then
arrXaxis = Array(1,0,0)
arrYaxis = Array(0,0,1)
Rhino.ViewCPlane , Rhino.PlaneFromFrame(arrOrigin, arrXaxis, arrYaxis)
End If