pyvista.surface_from_para#
- surface_from_para(
- parametric_function,
- u_res=100,
- v_res=100,
- w_res=100,
- clean=False,
- texture_coordinates=False,
Construct a mesh from a parametric function.
- Parameters:
- parametric_function
vtk.vtkParametricFunction
Parametric function to generate mesh from.
- u_res
int
, default: 100 Resolution in the u direction.
- v_res
int
, default: 100 Resolution in the v direction.
- w_res
int
, 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.
- parametric_function
- Returns:
pyvista.PolyData
Surface from the parametric function.