Skip to content

feat(WebGPU): add clipping plane support for polydata, volume and image#3464

Open
daker wants to merge 1 commit intoKitware:masterfrom
daker:feat-cropplanes
Open

feat(WebGPU): add clipping plane support for polydata, volume and image#3464
daker wants to merge 1 commit intoKitware:masterfrom
daker:feat-cropplanes

Conversation

@daker
Copy link
Copy Markdown
Collaborator

@daker daker commented Mar 31, 2026

Context

fixes : #2061
fixes : #2293

Results

Implement WebGPU clipping planes for polydata, image and volume rendering,

Use VolumeRenderingWithPolyData example for testing.

Changes

  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js:
    • OS:
    • Browser:

@daker daker force-pushed the feat-cropplanes branch 2 times, most recently from 9095a4b to fe8e279 Compare March 31, 2026 22:17
@daker daker mentioned this pull request Mar 31, 2026
11 tasks
@daker
Copy link
Copy Markdown
Collaborator Author

daker commented Apr 7, 2026

@sankhesh would you mind doing a quick code review?

Copy link
Copy Markdown
Member

@finetjul finetjul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally speaking, there are lots of duplication. Could you come up with a "helper" that gets injected into the mappers ?

Comment thread Sources/Rendering/Core/AbstractMapper/index.js Outdated
Comment thread Sources/Rendering/Core/AbstractMapper/index.js Outdated
Comment thread Sources/Rendering/Core/AbstractMapper/index.js Outdated
Comment thread Sources/Rendering/Core/AbstractMapper/index.js
Comment thread Sources/Rendering/Core/AbstractMapper/index.js Outdated
Comment thread Sources/Rendering/WebGPU/CellArrayMapper/index.js Outdated
Comment thread Sources/Rendering/WebGPU/ImageMapper/index.js Outdated
Comment thread Sources/Rendering/WebGPU/ImageMapper/index.js Outdated
Comment thread Sources/Rendering/WebGPU/VolumePassFSQ/index.js Outdated
Comment thread Sources/Rendering/WebGPU/ImageMapper/index.js Outdated
@daker
Copy link
Copy Markdown
Collaborator Author

daker commented Apr 7, 2026

@finetjul thanks for the code review, i will try to improve the code.

@daker daker force-pushed the feat-cropplanes branch 2 times, most recently from 5fd1cde to c0f81bf Compare April 8, 2026 08:58
@daker daker requested a review from finetjul April 8, 2026 08:59
@daker daker force-pushed the feat-cropplanes branch from c0f81bf to bd2cbde Compare April 8, 2026 09:04
@daker daker changed the title feat(webgpu): add clipping plane support for polydata, volume and image feat(WebGPU): add clipping plane support for polydata, volume and image Apr 8, 2026
@daker daker force-pushed the feat-cropplanes branch from bd2cbde to c0e575a Compare April 10, 2026 14:56
Comment thread Sources/Rendering/Core/AbstractMapper/index.js
Comment thread Sources/Rendering/WebGPU/CellArrayMapper/index.js Outdated
Comment thread Sources/Rendering/WebGPU/ImageMapper/index.js Outdated
Comment thread Sources/Rendering/WebGPU/VolumePassFSQ/index.js
@daker daker force-pushed the feat-cropplanes branch 3 times, most recently from cfabfc4 to 168099f Compare April 11, 2026 11:18
@daker daker requested a review from finetjul April 12, 2026 12:53
Copy link
Copy Markdown
Collaborator

@sankhesh sankhesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one minor performance improvement suggestion but looks good otherwise

Comment thread Sources/Rendering/WebGPU/VolumePassFSQ/index.js Outdated
Comment thread Sources/Rendering/WebGPU/VolumePassFSQ/index.js
Implement WebGPU clipping planes in CellArrayMapper, VolumePassFSQ
and ImageMapper.
@daker daker force-pushed the feat-cropplanes branch from 168099f to bece934 Compare April 15, 2026 16:42
@daker daker requested a review from sankhesh April 15, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement / test WebGPU clipping plane support for PolyDataMapper / ImageMapper Add crop planes to the polydata mapper in WebGPU

4 participants