-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add Float 2d snap rounding #8797
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
base: main
Are you sure you want to change the base?
Conversation
|
Also, I think the user will be interested in having a correspondence between input and output segments |
|
What is the status of this pull request ? |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Looks like there are still errors in the documentation. Maybe: |
|
From https://cgal.geometryfactory.com/CGAL/Manual_doxygen_test/CGAL-6.2-Ic-35/logs_master/Box_intersection_d.log (though file is changed in this PR): Probably something with the |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
The documentation is built. It will be available, after a few minutes, here: https://cgal.github.io/8797/v0/Manual/index.html |
|
Failure in the VC2017 testsuite CGAL-6.2-Ic-39 |
b6c1f9a to
eec0ae3
Compare
STL_Extension/include/CGAL/STL_Extension/internal/parameters_interface.h
Outdated
Show resolved
Hide resolved
Snap_rounding_2/doc/Snap_rounding_2/Concepts/FloatSnapRoundingTraits_2.h
Outdated
Show resolved
Hide resolved
Snap_rounding_2/doc/Snap_rounding_2/Concepts/FloatSnapRoundingTraits_2.h
Outdated
Show resolved
Hide resolved
Snap_rounding_2/doc/Snap_rounding_2/Concepts/FloatSnapRoundingTraits_2.h
Show resolved
Hide resolved
| * \cgalParamNEnd | ||
| */ | ||
| template <class InputIterator , class OutputIterator, class NamedParameters = parameters::Default_named_parameters> | ||
| OutputIterator compute_snapped_subcurves_2(InputIterator begin, |
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.
why 2 versions?
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.
One function takes an input segment and returns a polyline of points that correspond to that segment, ensuring a clear mapping between the input and the output. The other function simply outputs a range of segments that it is easier to use.
Snap_rounding_2/doc/Snap_rounding_2/Concepts/FloatSnapRoundingTraits_2.h
Outdated
Show resolved
Hide resolved
dfde505 to
acec954
Compare
|
From the overnight documentation build (https://cgal.geometryfactory.com/CGAL/Manual_doxygen_test/CGAL-6.2-Ic-63/logs_master/Snap_rounding_2.log):
|
Summary of Changes
Add two functions that given a range of segments, rounds their coordinates to double while preserving the topology "up to collapse". These functions differ from the actual snap rounding by rounding on
doubleor any irregular grid instead ofintegeror any regular grid.OutputContainer::iterator double_snap_rounding_2(InputIterator begin, InputIterator end, OutputContainer&outputs a range of polylines, each polyline corresponding to snapped version of an input segment.OutputContainer::iterator compute_snapped_subcurves_2(InputIterator begin, InputIterator end, OutputContainer&outputs all the segments resulting from the snap rounding of the input.TODO
New files are currently in package Snap rounding 2 but the copyrights of this package is not GF. Possibility: A new package? (THe feature seems to small for that) or move in Polygon_repair (owned by GF and quite link to the subject, be careful to not bring Arrangement_2 as dependancies).
Release Management