Skip to main content
Solved

Generate smooth curve between points

  • September 10, 2020
  • 1 reply
  • 183 views

warrendev
Enthusiast
Forum|alt.badge.img+26

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

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
Enthusiast
Forum|alt.badge.img+26
  • Author
  • Enthusiast
  • Best Answer
  • September 12, 2020

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