我有 3 个列表,每个是点的 X、Y 和 Z 坐标。我尝试使用 Dynamo 的 Point.ByCoordinates 节点,但它不接受列表作为输入。
我尝试创建一个 Python 脚本来帮助我,但是我对 python 很陌生,有人可以在这里帮助我吗?
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN
a=[]
for i in IN:
a.append(Autodesk.Point.ByCoordinates(IN[0][i],IN[1][i],IN[2][i]))
a # the list with the new items.
#Assign your output to the OUT variable.
OUT = a
到目前为止,这是我出来的,但我不知道如何处理了。提前致谢!