orbingol / NURBS-Python

Object-oriented pure Python B-Spline and NURBS library
https://onurraufbingol.com/NURBS-Python/
MIT License
640 stars 156 forks source link

Add support for more visualization libraries #30

Closed orbingol closed 6 years ago

orbingol commented 6 years ago

NURBS-Python provides an optional geomdl.visualization component for direct visualization of the curves and surfaces generated by the library. Currently, there is only one visualization module VisMPL which uses Matplotlib for generating the plots.

It could be a good idea to add more visualization options which use different libraries, such as Plotly or OpenGL.

orbingol commented 6 years ago

Plotly visualization module is almost ready. I have added VisCurve2D, VisCurve3D and VisSurface classes.

orbingol commented 6 years ago

Plotly implementation is completed and some examples are updated with this visualization implementation.

The documentation has been updated too: http://nurbs-python.readthedocs.io/en/latest/modules_visualization.html

It is always possible to implement more visualization modules but I believe the current 2 options, Matplotlib and Plotly, are good enough for the release of v4.0.