返回矩形灯光物件的平面。
rhinoscriptsyntax.RectangularLightPlane (object_id)
rhinoscript.light.RectangularLightPlane (object_id)
object_id |
必须参数。字符串或 Guid。灯光物件的 ID 。 |
平面,范围 |
平面及 x,y 方向范围值构成的元组。 |
import rhinoscriptsyntax as rs
id = rs.GetObject("Select a rectangular light", rs.filter.light)
if id:
rc = rs.RectangularLightPlane(id)
if rc:
plane, extents = rc
rs.AddPlaneSurface( plane, extents[0], extents[1] )