Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(geo): CylVolStack reuses gaps if exist #3716

Merged

Conversation

paulgessinger
Copy link
Member

@paulgessinger paulgessinger commented Oct 11, 2024

This PR makes it such that when a CylinderVolumeStack is resized with the gap strategy, if there are already gaps on the outside of the stack, they are reused instead of creating extra gaps.

Part of to #3502.

  original size
◀───────────────▶
┌───────────────┐
│               │
│               │
│   Volume 1    │
│               │
│               │
└───────────────┘
        first resize
◀──────────────────────────▶
┌───────────────┬──────────┐
│               │          │
│               │          │
│   Volume 1    │   Gap    │
│               │          │      Gap is
│               │          │      reused!──┐
└───────────────┴──────────┘               │
            second resize                  │
◀───────────────────────────────────▶      │
┌───────────────┬───────────────────┐      │
│               │                   │      │
│               │                   │      │
│   Volume 1    │        Gap        │◀─────┘
│               │                   │
│               │                   │
└───────────────┴───────────────────┘

Blocked by:

paulgessinger and others added 5 commits October 11, 2024 10:50
This makes it easier to pass it through if you have one
(CylinderVolumeStack mainly)
This fixes a bug where the local transform was not correctly synced
after resizing. Also improves a number of assertions to not rely on
floating point identity anymore
@paulgessinger paulgessinger added this to the next milestone Oct 11, 2024
@github-actions github-actions bot added the Component - Core Affects the Core module label Oct 11, 2024
@paulgessinger paulgessinger mentioned this pull request Oct 11, 2024
andiwand
andiwand previously approved these changes Oct 11, 2024
@paulgessinger paulgessinger added the 🛑 blocked This item is blocked by another item label Oct 11, 2024
@paulgessinger
Copy link
Member Author

I realized this actually needs #3715

Copy link

github-actions bot commented Oct 11, 2024

📊: Physics performance monitoring for 8b0788b

Full contents

physmon summary

@paulgessinger paulgessinger removed the 🛑 blocked This item is blocked by another item label Oct 11, 2024
Copy link

sonarcloud bot commented Oct 11, 2024

@paulgessinger
Copy link
Member Author

This is now unblocked and green!

@paulgessinger paulgessinger merged commit 010e397 into acts-project:main Oct 12, 2024
43 checks passed
@paulgessinger paulgessinger deleted the feat/cyl-vol-stack-gap-reuse branch October 12, 2024 09:10
@paulgessinger paulgessinger removed this from the next milestone Oct 16, 2024
@paulgessinger paulgessinger added this to the v37.1.0 milestone Oct 16, 2024
Rosie-Hasan pushed a commit to Rosie-Hasan/acts that referenced this pull request Nov 13, 2024
This PR makes it such that when a `CylinderVolumeStack` is resized with
the gap strategy, if there are already gaps on the outside of the stack,
**they are reused** instead of creating extra gaps.

Part of to acts-project#3502.
     
```                               
  original size
◀───────────────▶
┌───────────────┐
│               │
│               │
│   Volume 1    │
│               │
│               │
└───────────────┘
        first resize
◀──────────────────────────▶
┌───────────────┬──────────┐
│               │          │
│               │          │
│   Volume 1    │   Gap    │
│               │          │      Gap is
│               │          │      reused!──┐
└───────────────┴──────────┘               │
            second resize                  │
◀───────────────────────────────────▶      │
┌───────────────┬───────────────────┐      │
│               │                   │      │
│               │                   │      │
│   Volume 1    │        Gap        │◀─────┘
│               │                   │
│               │                   │
└───────────────┴───────────────────┘
```

Blocked by:
- acts-project#3715
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component - Core Affects the Core module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants