Re: How to Draw a Smooth Curve through a Set of 2D Points
Posted by
mahesh on
Mar 01, 2017; 3:54am
URL: https://forum.jogamp.org/How-to-Draw-a-Smooth-Curve-through-a-Set-of-2D-Points-tp4037677p4037691.html
Thankyou very much for the code..
But when i run the code in eclipse(with latest jogl-fat.jar) it does't display anything (neither it gives any error except red coloured info shown in the image below).

BTW how to create control points automatically for smooth spline through set of N points (all are on curve).
Actually I am working on 2D physics simulator, where I want to display position/speed time graph for object by collecting values over regular interval of time (roughly 60 times a second). To make this curve smooth and fast I an thinking of spline.
Also I need to recreate curve every frame (or just pop and push new data obtained in new frame).
Any suggestion??
Regards
mahesh