Skip to main content
Solved

Generate smooth curve between points

  • September 10, 2020
  • 1 reply
  • 130 views

warrendev
Enthusiast
Forum|alt.badge.img+23

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
Did this help you find an answer to your question?

1 reply

warrendev
Enthusiast
Forum|alt.badge.img+23
  • 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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings