Visualization Base

The visualization component in the NURBS-Python package provides an easy way to visualise the surfaces and the 2D/3D curves generated using the library. The following are the list of abstract classes for the visualization system and its configuration.

Class Reference

Abstract base class for visualization

Defines an abstract base for NURBS-Python visualization modules.

param config:configuration class
type config:VisConfigAbstract
geomdl.vis.VisAbstract.ctrlpts_offset

Defines an offset value for the control points grid plots

Only makes sense to use with surfaces with dense control points grid.

Getter:Gets the offset value
Setter:Sets the offset value
Type:float
geomdl.vis.VisAbstract.mconf

Configuration directives for the visualization module (internal).

This property controls the internal configuration of the visualization module. It is for advanced use and testing only.

The visualization module is mainly designed to plot the control points (ctrlpts) and the surface points (evalpts). These are called as plot types. However, there is more than one way to plot the control points and the surface points. For instance, a control points plot can be a scatter plot or a quad mesh, and a surface points plot can be a scatter plot or a tessellated surface plot.

This function allows you to change the type of the plot, e.g. from scatter plot to tessellated surface plot. On the other than, some visualization modules also defines some specialized classes for this purpose as it might not be possible to change the type of the plot at the runtime due to visualization library internal API differences (i.e. different backends for 2- and 3-dimensional plots).

By default, the following plot types and values are available:

Curve:
  • For control points (ctrlpts): points
  • For evaluated points (evalpts): points
Surface:
  • For control points (ctrlpts): points, quads
  • For evaluated points (evalpts): points, quads, triangles
Volume:
  • For control points (ctrlpts): points
  • For evaluated points (evalpts): points, voxels
Getter:Gets the visualization module configuration
Setter:Sets the visualization module configuration
geomdl.vis.VisAbstract.vconf

User configuration class for visualization

Getter:Gets the user configuration class
Type:vis.VisConfigAbstract

Abstract base class for user configuration of the visualization module

Defines an abstract base for NURBS-Python visualization configuration.