Skip to main content
Solved

Generate smooth curve between points

  • Sep 10, 2020 6:28 PM UTC
  • 1 reply
  • 258 views

warrendev
Influencer
Forum|alt.badge.img+28

I have a set of 2d points that I need to generate a smooth curve between all points. My goal is to either take a polyline or a set of points and generate a spline between all of the points for a best fit and write this out to a DWG.

 

I'm trying to figure out which transformers would be best to build this. I just need to make sure that the spline passes through each point for a best fit.

 

spline

Best answer by warrendev

Easier than I thought. Just needed to build the line with the linebuilder and send the polyline to the DWG writer after setting the attribute "autocad_entity" to "autocad_spline" and it will draw it correctly at write time.

 

spline

View original
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

warrendev
Influencer
Forum|alt.badge.img+28
  • Author
  • Influencer
  • Best Answer
  • Sep 12, 2020 9:17 PM UTC

Easier than I thought. Just needed to build the line with the linebuilder and send the polyline to the DWG writer after setting the attribute "autocad_entity" to "autocad_spline" and it will draw it correctly at write time.

 

spline