SurfaceSphere - PYTHON 不支持

返回球面的定义参数。

语法

Rhino.SurfaceSphere (strSurface)

参数

strSurface

Required.字符串。The surface object's identifier.

返回值

Array

An array containing the definition of the sphere if successful.The elements of the array are as follows:

Element

Type

描述

0

Array

The equatorial plane of the sphere.The origin of the plane will be the center point of the sphere.

1

Number

The radius of the sphere.

Null

如果执行不成功或出错,返回空值。

示例

Dim strSphere, arrSphere

strSphere = Rhino.AddSphere(Rhino.WorldXYPlane, 6)

If Rhino.IsSphere(strSphere) Then

  arrSphere = Rhino.SurfaceSphere(strSphere)

  Rhino.AddSphere arrSphere(0), arrSphere(1)

End If

示例

SurfaceCone

SurfaceCylinder

SurfaceTorus