I am trying to use pyvista.PolyData
in the following code, however I keep getting this error:
"AttributeError: module 'pyvista' has no attribute 'PolyData'"
Can you please help me in resolving this issue? The python version being used is 3.6. Thank you
import pyvista as pv
points_3d_boundary_upper = points_3d_boundary_ordered.copy()
points_3d_boundary_upper[:, 0] -= factor * normal_vector[0]
points_3d_boundary_upper[:, 1] -= factor * normal_vector[1]
points_3d_boundary_upper[:, 2] -= factor * normal_vector[2]
# Initiate mesh with lower and upper boundary points
mesh_points_components = [points_3d_boundary_lower, points_3d_boundary_upper]
extruded_boundary = pv.PolyData(np.concatenate(mesh_points_components))