-
Notifications
You must be signed in to change notification settings - Fork 27
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
Adds a curved polygon class to primal #844
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kennyweiss
requested review from
white238,
cyrush,
rhornung67,
publixsubfan,
jcs15c,
gunney1,
agcapps and
bmhan12
June 17, 2022 22:23
kennyweiss
force-pushed
the
feature/kweiss/curved-polygon
branch
3 times, most recently
from
June 21, 2022 02:09
aa2f1fe
to
206a837
Compare
jcs15c
approved these changes
Jun 21, 2022
agcapps
reviewed
Jun 21, 2022
agcapps
reviewed
Jun 21, 2022
agcapps
approved these changes
Jun 21, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @davidgunderman and @kennyweiss .
…function (tangent vector of BezierCurve), and stable orientation function for directional walking method
Matrix can now be used as a value type for containers like std::map.
axom::deallocate did not play nicely with destruction of static data associated with the axom::Matrix class.
… for each Adjusted sectorMoment for refactoried memoization by K. Weiss.
…ed some tolerances
Fixes CurvedPolygon::isClosed() and adds unit test.
The new name is more accurate: The function is computing the mean of the vertex positions, not the centroid.
…CurvedPolygon These are now provided as primal operators: * BezierCurve: `sector_area()` / `sector_centroid()` * CurvedPolygon: `area()` / `centroid()` There operations only apply to 2D (polynomial) BezierCurves, so don't belong in the dimension-templated classes.
* Moved from C2CReader * Adds unit tests * Use in `BezierCurve` class
kennyweiss
force-pushed
the
feature/kweiss/curved-polygon
branch
from
June 22, 2022 18:17
206a837
to
f59b94c
Compare
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
primal::CurvedPolygon
representing a polygon withBezierCurves
as edgessector_area
andsector_centroid
of a BezierCurve. These are used to compute the area and centroid of aCurvedPolygon
, respectively.feature/kweiss/bezier-polygon-revamp
which uses the above functionality to intersect two curved polygons.Credits: Much of this code was developed by @davidgunderman
TODO:
RELEASE-NOTES