pyvista.surface_from_para#
- surface_from_para(
- parametric_function: _vtk.vtkParametricFunction,
- u_res: int = 100,
- v_res: int = 100,
- w_res: int = 100,
- clean: bool = False,
- texture_coordinates: bool = False,
- Construct a mesh from a parametric function. - Parameters:
- parametric_functionvtkParametricFunction
- 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.