Export closed surface mesh without cap polygons

Hi Ovito users,

I am using ovito python lib to compute surfaces from LAMMPS data/dump files. However, I would like to export only top or bottom faces without cap polygons at PBC in vtk format. Disabling the periodic boundary is not a valid option because this changes the computed surface. Also using

modifier.vis.show_cap = False

appears to have no effect on the vtk output from export_file. Is there a way to pass it as an option even if is_closed = True?

Good news: There actually is an (undocumented) option you can pass to the export_file() function to override the default behavior of the VTK file exporter: include_caps=False.

1 Like

I suspected something like this would have been implemented or easily done.

Many thanks!