Skip to content

Isovolume: clip by a range, of high-order fields too #419

Closed

Description

@berkgeveci

There is no isovolume: the cells and parts of cells where a field lies between two values (ParaView's Iso Volume, vtkPVClipDataSet by scalar range). threshold keeps or drops whole cells (or whole sub-cells of high-order cells), and clip takes one value, so an isovolume has to be two clips, and that fails for high-order fields: clip of an order-p field returns PartitionedDataSet([whole, part]), and clip refuses a PartitionedDataSet (AttributeError: 'PartitionedDataSet' object has no attribute 'ghosts').

Wanted: a clip by a range, lower <= field <= upper, cutting cells at both levels:

  • linear cells by the clip tables, at both levels (or two passes on the linear path);
  • high-order fields through split_by_range, which already sorts cells by their Bernstein bound into kept whole, dropped and cut; the cut part refined and clipped at both levels, the whole part kept at its order, as clip does today.

Checked with order 3-5 fields on hexahedra and tetrahedra. Part of the high-order coverage of ParaView's common filters (Iso Volume), for orders up to 5.

Activity

  1. added
    enhancement
    on Nov 10, 2026
  2. self-assigned this
    on Nov 10, 2026
  3. added this to the 0.8 milestone on Nov 10, 2026
  4. added a commit that references this issue on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions