Skip to content

chore(ImageMarchingCubes): fix example clipping - #3641

Open
Jo-Byr wants to merge 1 commit into
Kitware:masterfrom
Jo-Byr:fix-image-marching-cubes-example
Open

chore(ImageMarchingCubes): fix example clipping#3641
Jo-Byr wants to merge 1 commit into
Kitware:masterfrom
Jo-Byr:fix-image-marching-cubes-example

Conversation

@Jo-Byr

@Jo-Byr Jo-Byr commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Context

The produces sphere in ImageMarchingCubes example can clip with the sampler bounds for a big enough radius or ISO value.

image

Results

Bounds are updated when changing radius or ISO to prevent clipping.

Changes

Update sample bounds on radius and iso value updates to avoid clipping of output with bounds

Set initial GUI radius to actual sphere's initial radius

PR Checklist

  • GitHub Actions CI passed: semantic-release commit messages, lint, and tests
  • Test coverage added
  • Documentation and TypeScript definitions are updated to match these changes

Update sample bounds on radius and iso value updates to avoid
clipping of output with bounds
Set initial GUI radius to actual sphere's initial radius
@Jo-Byr
Jo-Byr requested a review from finetjul September 8, 2026 08:38
@Jo-Byr Jo-Byr self-assigned this Sep 8, 2026

@finetjul finetjul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I do not think there is a problem in the first place. The clipping makes sense and helps understand what the algorithm really does.
Showing the "sample" volume (don't do it) could be more helpful than changing the bounds.

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.

2 participants