Metadata-Version: 2.1
Name: bspy
Version: 1.2.3
Summary: Library for manipulating and rendering non-uniform b-splines
Home-page: http://github.com/ericbrec/bspy
Author: Eric Brechner
Author-email: ericbrec@msn.com
License: MIT
Project-URL: Bug Tracker, http://github.com/ericbrec/bspy/issues
Keywords: opengl,bspline,b-spline,nub,tkinter
Classifier: License :: OSI Approved :: MIT License
Classifier: Environment :: Win32 (MS Windows)
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Multimedia :: Graphics :: 3D Rendering
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Mathematics
Classifier: Topic :: Scientific/Engineering :: Visualization
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.0
Description-Content-Type: text/markdown
License-File: LICENSE

# bspy
Library for manipulating and rendering b-spline curves, surfaces, and multidimensional manifolds with non-uniform knots in each dimension.

The [Spline](https://ericbrec.github.io/bspy/bspy/spline.html) class has a method to fit multidimensional data for 
scalar and vector functions of single and multiple variables. Other methods add, subtract, multiply, and linearly transform splines. 
There are methods to evaluate spline values, derivatives, normals, and integrals, as well as methods that return spline representations 
of derivatives, normals, integrals, and convolutions. In addition, there are methods to manipulate the domain of splines, including trim, 
reparametrize, add and remove knots, elevate and extrapolate, and fold and unfold. Finally, there are methods to compute the zeros and contours of a spline and to intersect two splines.

The [SplineOpenGLFrame](https://ericbrec.github.io/bspy/bspy/splineOpenGLFrame.html) class is an 
[OpenGLFrame](https://pypi.org/project/pyopengltk/) with custom shaders to render spline curves and surfaces.

The [DrawableSpline](https://ericbrec.github.io/bspy/bspy/drawableSpline.html) class converts a 
[Spline](https://ericbrec.github.io/bspy/bspy/spline.html) to a curve or surface that can be drawn in a 
[SplineOpenGLFrame](https://ericbrec.github.io/bspy/bspy/splineOpenGLFrame.html). Only 1D and 2D splines can be converted.

The [bspyApp](https://ericbrec.github.io/bspy/bspy/bspyApp.html) class is a 
[tkinter.Tk](https://docs.python.org/3/library/tkinter.html) app that hosts a 
[SplineOpenGLFrame](https://ericbrec.github.io/bspy/bspy/splineOpenGLFrame.html), 
a listbox full of splines, and a set of controls to adjust and view the selected splines.

The [bspyGraphics](https://ericbrec.github.io/bspy/bspy/bspyApp.html#bspyGraphics) class is a graphics engine to display splines.
It launches a [bspyApp](https://ericbrec.github.io/bspy/bspy/bspyApp.html) and issues commands to the app for use 
in [jupyter](https://jupyter.org/) notebooks and other scripting environments.

![bspyApp rendering the Utah teapot](https://ericbrec.github.io/bspy/bspyApp.png "bspyApp rendering the Utah teapot")

The full documentation for bspy can be found [here](https://ericbrec.github.io/bspy), its GitHub project can be found 
[here](https://github.com/ericbrec/bspy), a test suite can be found [here](https://github.com/ericbrec/bspy/tree/main/tests), and
a set of examples, including a jupyter notebook, can be found [here](https://github.com/ericbrec/bspy/tree/main/examples).
