Closed ghazalbangash closed 3 years ago
Hello,
There's a minor problem with your example. Since you're not updating the mesh in-place
, you have to use the returned value of decimate
:
import pyvista as pv
from pyvista import examples
bunny = examples.download_bunny()
dec_bunny = bunny.decimate(0.9)
p = pv.Plotter(shape=(2, 1))
p.add_mesh(bunny, show_edges=True)
p.camera_position = 'xy'
p.camera.zoom(2)
p.subplot(1, 0)
p.add_mesh(dec_bunny, show_edges=True)
p.camera_position = 'xy'
p.camera.zoom(2)
p.show()
thanks a lot :D
Hi there i want to reduce the triangles of my mesh and tried using decimate function but it doesnt seem to bring any change in the number of cells of my mesh here is my code:
am i using it wrong?cause i have the same issue using subdivide