Hello,
trying to draw a list of 3d point:
[<Rhino.Geometry.Point3d object at 0x000000000000006C [-17.7536029815674,-34.3334693908691,32.9000015258789]>, <Rhino.Geometry.Point3d object at 0x000000000000006D [-11.6615104152875,-32.226620183662,32.9232406533673]>, <Rhino.Geometry.Point3d object at 0x000000000000006E [-6.05254365377602,-29.0225643337184,32.9949219452812]>, <Rhino.Geometry.Point3d object at 0x000000000000006F [-0.33322245274478,-26.0330419449284,33.0719360510503]>, <Rhino.Geometry.Point3d object at 0x0000000000000070 [6,-25,33.0999984741211]>]
and keep on receiving this :
Message: Multiple targets could match: AddPoints(IEnumerable[Point3f]), AddPoints(IEnumerable[Point3d])
I've then try to specify to pu Guid as a second argument of : AddPoints() but receiving the following answer:
I was expecting a point3f
...if i then convert it to point 3f the answer:
is I was expecting point3d
what am I doing wrong?
Python Code:
def Divide(curve,count):points = []values= Rhino.Geometry.Curve.DivideByCount(curve,count,True)for i in values:points.Add(curva.PointAt(i))print pointsif scriptcontext.doc.Objects.AddPoints(points) !=System.Guid.Empty:scriptcontext.doc.Views.Redraw()return Rhino.Commands.Result.Successreturn Rhino.Commands.Result.Failure


Reply With Quote
