在当前文档中添加一个平行光。
rhinoscriptsyntax.AddDirectionalLight (start_point, end_point)
rhinoscript.light.AddDirectionalLight (start_point, end_point)
start_point |
必须参数。三个数字组成的列表或 Point3d 对象。作为灯光起点的 3-D 点。 |
end_point |
必须参数。三个数字组成的列表或 Point3d 对象。作为灯光终点的 3-D 点。 |
Guid |
执行成功,返回新物件的ID。 |
import rhinoscriptsyntax as rs
end = rs.GetPoint("End of light vector direction")
if end:
start = rs.GetPoint("Start of light vector direction", end)
if start: rs.AddDirectionalLight( start, end )