pyvista.surface_from_para

pyvista.surface_from_para#

surface_from_para(
parametric_function,
u_res=100,
v_res=100,
w_res=100,
clean=False,
texture_coordinates=False,
)[source]#

Construct a mesh from a parametric function.

Parameters:
parametric_functionvtk.vtkParametricFunction

Parametric function to generate mesh from.

u_resint, default: 100

Resolution in the u direction.

v_resint, default: 100

Resolution in the v direction.

w_resint, default: 100

Resolution in the w direction.

cleanbool, default: False

Clean and merge duplicate points to avoid “creases” when plotting with smooth shading.

texture_coordinatesbool, default: False

The generation of texture coordinates. This is off by default. Note that this is only applicable to parametric surfaces whose parametric dimension is 2. Note that texturing may fail in some cases.

Returns:
pyvista.PolyData

Surface from the parametric function.