msteinbeck / tinyspline

ANSI C library for NURBS, B-Splines, and Bézier curves with interfaces for C++, C#, D, Go, Java, Javascript, Lua, Octave, PHP, Python, R, and Ruby.
MIT License
1.19k stars 208 forks source link

man function in c file of tinyspline missing #1

Closed atifMughees closed 10 years ago

atifMughees commented 10 years ago

Hie their I wanted to ask you if you kindly also write a main for this program as well

msteinbeck commented 10 years ago

This program is designed as a library and not complete now. Adding a main to the library itself wouldn't be useful, but I could add some example code with OpenGL if you wish to.

atifMughees commented 10 years ago

Dear Marcel Thankue so much for the prompt responnse. Yes that would be really great if you can add some example main code to run and use this library for splines.

Regards Atif

On Sun, Oct 19, 2014 at 12:57 AM, Marcel notifications@github.com wrote:

This program is designed as a library and not complete now. Adding a main to the library itself wouldn't be useful, but I could add some example code with OpenGL if you wish to.

— Reply to this email directly or view it on GitHub https://github.com/retuxx/tinyspline/issues/1#issuecomment-59642498.

msteinbeck commented 10 years ago

I just committed a simple example of a B-Spline rendered with OpenGL. To compile this example use 'make examples' within the root folder. It will create the binary bspline within the bin folder. If you are using Windows you need to install MinGW with MSYS.

This example shows you a simple B-Spline. The red dots are the control points, the blue dot is the evaluation of the B-Spline at u=0.5. You can also use the library for Béziers and NURBS. If you need more examples, just let me know. Keep in mind the library is not finished now. For example error handling is not very nice.

atifMughees commented 10 years ago

Hie thankue so much .. Yes their are some errors in the Library. But i have removed most of it.

On Tue, Oct 21, 2014 at 12:07 AM, Marcel notifications@github.com wrote:

I just committed a simple example of a B-Spline rendered with OpenGL. To compile this example use 'make examples' within the root folder. It will create the binary bspline within the bin folder. If you are using Windows you need to install MinGW with MSYS.

This example shows you a simple B-Spline. The red dots are the control points, the blue dot is the evaluation of the B-Spline at u=0.5. You can also use the library for Béziers and NURBS. If you need more examples, just let me know. Keep in mind the library is not finished now. For example error handling is not very nice.

— Reply to this email directly or view it on GitHub https://github.com/retuxx/tinyspline/issues/1#issuecomment-59822345.

msteinbeck commented 10 years ago

No problem. If you find any bugs or have some improvements feel free to let me know.