将一个点从工作平面坐标变换到世界坐标。
rhinoscriptsyntax.XformCPlaneToWorld (point, plane)
rhinoscript.transformation.XformCPlaneToWorld (point, plane)
point |
必须参数。三个数字组成的列表或 Point3d 对象。工作平面坐标中的 3-D 点。 |
||||||||||
plane |
必须参数。平面列表。工作平面。如果是列表,平面数组的元素如下:
|
Point3d 点 |
执行成功返回世界坐标的 3-D 点。 |
None |
如果执行不成功或出错,返回空值。 |
import rhinoscriptsyntax as rs
plane = rs.ViewCPlane()
point = rs.XFormCPlaneToWorld([0,0,0], plane)
if point: print "World point:", point