visualize#

ClosedCurve.visualize(ax, params: ndarray, initial_params: ndarray | None = None) None#

Visualize the parametrization on a matplotlib axes.

Plots the Bezier control points (vertices) and the polygon outline. The initial geometry is shown in light gray, with the current geometry overlaid on top. Parameterized vertices (that move during optimization) are shown in red, while fixed vertices are shown in blue.

Parameters:
axmatplotlib.axes.Axes

Matplotlib axes object to plot on.

paramsnp.ndarray

Current parameter values to visualize.

initial_paramsnp.ndarray, optional

Initial parameter values for comparison (default: None). If provided, shown in light gray.