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

Add AxisAlignedBox::fromPoints #1114

Merged
merged 7 commits into from
Feb 25, 2025
Merged

Add AxisAlignedBox::fromPoints #1114

merged 7 commits into from
Feb 25, 2025

Conversation

j9liu
Copy link
Contributor

@j9liu j9liu commented Feb 14, 2025

This is just a helper function that I plan to use in #1111. That PR is getting a bit heavy, so I wanted to break it up into more digestible PRs.

@kring kring added this to the March 2025 Release milestone Feb 21, 2025
Copy link
Member

@kring kring left a comment

Choose a reason for hiding this comment

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

Thanks @j9liu, just a couple of minor comments here.

@@ -1,9 +1,12 @@
#pragma once

#include <CesiumGeometry/Library.h>
#include "Library.h"
Copy link
Member

Choose a reason for hiding this comment

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

We used to do this for headers in the same directory, but lately we've just been using the qualified name in angle brackets for consistency.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay! I thought that went against our style guide, but I'll revert it.

Copy link
Contributor

Choose a reason for hiding this comment

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

It might be worth adding a section about #include style to the style guide? Especially since this is a change from SF.12.

Copy link
Contributor

Choose a reason for hiding this comment

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

I reopened #991 noting this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can see doing this for #includes in headers, but a small peeve in .cpp files is that the angle brackets cause the relevant .h to get mixed with the other includes. In other words, if I have "MyFile.h", doing <MyFile.h> in MyFile.cpp potentially mixes it with the other includes due to sorting alphabetically. It's not the biggest deal in the world but I guess the first option feels more "right" :')

Copy link
Contributor

Choose a reason for hiding this comment

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

That might be fixable with .clang-format

Copy link
Contributor

Choose a reason for hiding this comment

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

Hm maybe not: llvm/llvm-project#39735

@j9liu
Copy link
Contributor Author

j9liu commented Feb 24, 2025

Thanks for the comments @kring ! This is ready for another look.

@kring
Copy link
Member

kring commented Feb 25, 2025

Thanks @j9liu!

@kring kring merged commit 87ebb83 into main Feb 25, 2025
22 checks passed
@kring kring deleted the axis-aligned-from-points branch February 25, 2025 01:55
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.

3 participants