select the curve you want to simplify and then go to "Curves">"Rebuild", click on the Options-Box to set up the behavior of the "Rebuild" tool ... play around with the settings and you should get the desired result :-)
I'd separate the curves, so that you have straight curve on the side and curvy on top/bot, and then use the Rebuild tool. Otherwise you might get undesired results.
For the straight curve, Rebuild Type - Uniform, Number of spans 1 and Degree Linear.
If you want, for the curvy curve same thing can be applied, just use Cubic Degree.
If you're looking to build a polygonal surface out of that, it's easier to use the Loft command (or Birail) with these settings. It keeps your history in a way that you can manipulate the selected curve as much as you would want. In your case I would Loft the top and bottom curve or just duplicate one and select them both and do the command then.
I'd separate the curves, so that you have straight curve on the side and curvy on top/bot, and then use the Rebuild tool. Otherwise you might get undesired results.
For the straight curve, Rebuild Type - Uniform, Number of spans 1 and Degree Linear.
If you want, for the curvy curve same thing can be applied, just use Cubic Degree.
If you're looking to build a polygonal surface out of that, it's easier to use the Loft command (or Birail) with these settings. It keeps your history in a way that you can manipulate the selected curve as much as you would want. In your case I would Loft the top and bottom curve or just duplicate one and select them both and do the command then.
thanks guys, i know about rebuild option, but is not working right. I need just script that determining 3 points lie on the same line. If yes - then delete middle point.
Replies
Rebuild Curve Options Help:
https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/Maya-Modeling/files/GUID-E8E831D1-A985-4FFD-AFA8-EA6AD7483FE6-htm.html
Reduce Complexity of a curve:
https://knowledge.autodesk.com/support/maya/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/Maya-Modeling/files/GUID-24DF5B14-6A5A-434E-9693-2318400BC32B-htm.html
I hope I could help :-)
For the straight curve, Rebuild Type - Uniform, Number of spans 1 and Degree Linear.
If you want, for the curvy curve same thing can be applied, just use Cubic Degree.
If you're looking to build a polygonal surface out of that, it's easier to use the Loft command (or Birail) with these settings. It keeps your history in a way that you can manipulate the selected curve as much as you would want. In your case I would Loft the top and bottom curve or just duplicate one and select them both and do the command then.