algorithmic modeling for Rhino
So here is a little hang up that I have been experiencing:
I getting an "invalid Curve" when doing this:
def toRHPolyCurve(self):
rhPolyCurve = rc.Geometry.PolyCurve()
for j in self.curves:
if type(j) == MSLine:
rhPolyCurve.Append(j.toRHLineCurve())
elif type(j) == MSArc:
rhPolyCurve.Append(j.toRHArc())
elif type(j) == MSNurbsCurve:
rhPolyCurve.Append(j.toRHNurbsCurve())
return rhPolyCurve
This is a definition that returns a PolyCurve() yet Grasshopper tells me its an invalid curve. Ideas?
Tags:
You can use the Polycurve.IsValidWithLog method to see why Rhino might think the curve is invalid.
You can use the Curve.IsValidWithLog method to see why Rhino might think the curve is invalid. I can't tell just by looking from all the way over here.
Yes, IsValidWithLog is pretty good. I think I know what my issue is now. Thanks!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by