add_parametric_surface Subroutine

public subroutine add_parametric_surface(x, y, z, color, linewidth, label, row_stride, column_stride, cmap, show_colorbar, alpha, edgecolor, filled, colormap)

Draw a tensor-product parametric surface as a wireframe or shaded mesh.

Unlike add_surface, which accepts a height field z(y,x), this helper accepts physical coordinates for every grid point. It is therefore suitable for closed curved surfaces such as spheres, toroids, and trimmed spline patches. filled=.true. emits shaded quadrilateral facets with painter depth ordering; the default remains the historical wireframe representation.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), contiguous :: x(:,:)
real(kind=wp), intent(in), contiguous :: y(:,:)
real(kind=wp), intent(in), contiguous :: z(:,:)
character(len=*), intent(in), optional :: color
real(kind=wp), intent(in), optional :: linewidth
character(len=*), intent(in), optional :: label
integer, intent(in), optional :: row_stride
integer, intent(in), optional :: column_stride
character(len=*), intent(in), optional :: cmap
logical, intent(in), optional :: show_colorbar
real(kind=wp), intent(in), optional :: alpha
real(kind=wp), intent(in), optional :: edgecolor(3)
logical, intent(in), optional :: filled
character(len=*), intent(in), optional :: colormap