@NavArch wrote:
Hello,
Can someone Please tell me what is wrong with this chunk of code?from Rhino import * from Rhino.Commands import * from Rhino.Geometry import * from Rhino.Input import * from Rhino.DocObjects import * from Rhino.Input.Custom import * from scriptcontext import doc import rhinoscriptsyntax as rs import math def BowProfFillet(StemCrv,KeelCrv): Crv1 = rs.coercecurve(StemCrv) Pt1 = rs.CurveStartPoint(StemCrv) Crv2 = rs.coercecurve(KeelCrv) Pt2 = rs.CurveStartPoint(KeelCrv) FilletCrvs = Curve.CreateFilletCurves(Crv1,Pt1,Crv2,Pt2,1, True,True,True,0.001, 0.01) doc.Objects.AddCurve(FilletCrvs[0])
StemCrv and KeelCrv are GUIDs of the two curves I am trying to fillet, but I get an empty array back from Curve.CreateFilletCurves(). Is there something I'm am doing wrong? I found the example code online that uses Curve.CreateFilletCurves() and can get it to work, but when I try to implement it in my own code I get nothing.
Thanks
Posts: 5
Participants: 2