I am creating an array of curves by projecting a single curve onto a mesh. This fragments the original curve into multiple curves. I then want to access the array of 3D points that comprise each of the curves.
newProjectedCurves = rs.ProjectCurveToMesh(randomCurveGuid,mesh,(0,0,-1))
for guid in newProjectedCurves:
print guid
pnts = rs.curvePoints(guid)
print pnts
The result was the following error:
Message: ‘module’ object has no attribute ‘curvePoints’
What ended up working was a combination of both suggestions:
newProjectedCurves = rs.ProjectCurveToMesh(randomCurveGuid,mesh,(0,0,-1))
for guid in newProjectedCurves:
curve = rs.coercecurve(guid)
pnts = rs.CurvePoints(curve)
for pnt in pnts:
print pnt