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 TransformShape::findBounds #683

Merged
merged 3 commits into from
Nov 21, 2024
Merged

Conversation

FabienPean-Virtonomy
Copy link
Collaborator

Previous implementation returned the rotated bounds of the underlying shape, which are only 2 points of the underlying shape AABB. Therefore, for a random rotation, it is common to have the generated particles truncated, e.g. during generation for a TransformShape<GeometricShapeBox>, see below

image

This PR fixes that by returning the bounds of the rotated bounding box instead and results in the expected outcome below
image

@Xiangyu-Hu Xiangyu-Hu self-requested a review November 21, 2024 13:58
@Xiangyu-Hu Xiangyu-Hu merged commit 62a6a9c into master Nov 21, 2024
7 checks passed
@Xiangyu-Hu Xiangyu-Hu deleted the fix/transform-shape-bounds branch November 21, 2024 17:30
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