I am trying to plug programmatic info into my GFA units, before pushing from Dynamo to Forma. The problem is my shape is fairly complex and the boundary curves return NURBS curves. I’ve tried Curve.ApproximateByArcAndLineSegments, but it fails because some arcs are less than the tolerance. Curve.Simplify also fails, even with a high tolerance. I assume the GFA unit representation needs to match the dynamo geometry exactly, so I’m not sure if simplifying is an option. I’d prefer to not sacrifice the complexity of the shape. Unless that is just a limitation for now. Is there anyway to convert a NURBS curve into a lossless Polycurve?
You can’t push NURBS lossless into GFAUnits. You need to “discretize” them. It’s a know issue that the Forma nodes that “support” polycurve is actually just supporting the control points not the complex curves underneath. ( my bad )
You can do that with Curve.PointsAtChordLengthFromPoint
and just doing a small resolution. This assumes that “sacrifice the complexity” is not obsession on the curve, but on the feature you’re trying to represent. And just see how far you need to push the resolution down.
2 Likes
Cool looking shape btw, looking forward to see what your are cooking !
2 Likes
Ah thank you! Giving this a try today!
I appreciate it! Can’t share too much yet but I’m happy with the results for sure!
1 Like