Skip to content

Add Float 2d snap rounding#8797

Open
LeoValque wants to merge 138 commits intoCGAL:mainfrom
LeoValque:Float_2D_snap-GF
Open

Add Float 2d snap rounding#8797
LeoValque wants to merge 138 commits intoCGAL:mainfrom
LeoValque:Float_2D_snap-GF

Conversation

@LeoValque
Copy link
Copy Markdown
Contributor

@LeoValque LeoValque commented Mar 24, 2025

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 double or any irregular grid instead of integer or any regular grid.

/// outputs a range of polylines, each polyline corresponding to snapped version of an input segment.
OutputContainer::iterator double_snap_rounding_2(InputIterator begin, InputIterator end,                                                  OutputContainer&)
/// outputs all the segments resulting from the snap rounding of the input.
`OutputContainer::iterator compute_snapped_subcurves_2(InputIterator begin, InputIterator end,                                                  OutputContainer&)

Release Management

  • Affected package(s): Snap rounding 2 ***
  • Feature/Small Feature (if any): Float_2D_Snap_rounding
  • Link to compiled documentation (obligatory for small feature):
  • License and copyright ownership: GF

@sloriot
Copy link
Copy Markdown
Member

sloriot commented Apr 1, 2025

Also, I think the user will be interested in having a correspondence between input and output segments

@afabri
Copy link
Copy Markdown
Member

afabri commented Jun 30, 2025

What is the status of this pull request ?

@sloriot sloriot changed the base branch from master to main September 18, 2025 15:19
@MaelRL MaelRL added Not yet approved The feature or pull-request has not yet been approved. Small feature labels Oct 30, 2025
@LeoValque

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@LeoValque

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@sloriot

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@albert-github
Copy link
Copy Markdown
Contributor

Looks like there are still errors in the documentation.
From https://cgal.geometryfactory.com/CGAL/Manual_doxygen_test/CGAL-6.2-Ic-35/logs_master/Snap_rounding_2.log:

/home/cgal-testsuite/cgal_doc_build/CGAL-6.2-Ic-35/doc/Snap_rounding_2/Concepts/FloatSnapRoundingTraits_2.h:7: warning: unable to resolve reference to 'CGAL::snap_rounding_' for \ref command
/home/cgal-testsuite/cgal_doc_build/CGAL-6.2-Ic-35/doc/Snap_rounding_2/Concepts/FloatSnapRoundingTraits_2.h:149: warning: unable to resolve link to 'FloatSnapRoundingTraits_2::ConstructRoundPoint_2' for \link command
/home/cgal-testsuite/cgal_doc_build/CGAL-6.2-Ic-35/doc/Snap_rounding_2/Concepts/FloatSnapRoundingTraits_2.h:166: warning: unable to resolve link to 'FloatSnapRoundingTraits_2::SquaredRoundBound_2' for \link command
/home/cgal-testsuite/cgal_doc_build/CGAL-6.2-Ic-35/doc/Snap_rounding_2/Concepts/FloatSnapRoundingTraits_2.h:183: warning: unable to resolve link to 'FloatSnapRoundingTraits_2::ConverterToExact' for \link command
/home/cgal-testsuite/cgal_doc_build/CGAL-6.2-Ic-35/doc/Snap_rounding_2/Concepts/FloatSnapRoundingTraits_2.h:202: warning: unable to resolve link to 'FloatSnapRoundingTraits_2::ConverterToExact' for \link command

Maybe: FloatSnapRoundingTraits_2 -> FSRTraits_2

@albert-github
Copy link
Copy Markdown
Contributor

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):

/home/cgal-testsuite/cgal_doc_build/CGAL-6.2-Ic-35/doc/Box_intersection_d/Box_intersection_d.txt:174: warning: unable to resolve reference to 'Box_intersection_d/boxes_with_different_types.cpp' for \ref command

Probably something with the EXAMPLE_PATH settings

@LeoValque

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@LeoValque

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@afabri
Copy link
Copy Markdown
Member

afabri commented Nov 12, 2025

Failure in the VC2017 testsuite CGAL-6.2-Ic-39

@MaelRL MaelRL mentioned this pull request Apr 2, 2026
8 tasks
@LeoValque

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@MaelRL MaelRL modified the milestones: 6.2-beta, 6.3-beta Apr 7, 2026
…ameter output_unique_segments to get polylines of length 2 without duplicates
@LeoValque

This comment was marked as outdated.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

The documentation is built. It will be available, after a few minutes, here: https://cgal.github.io/8797/v4/Manual/index.html

@LeoValque
Copy link
Copy Markdown
Contributor Author

/force-build:v4

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

There was an error while building the doc:

/home/runner/work/cgal/cgal/build_doc/doc_tags/Snap_rounding_2.tag:1700: warning: Duplicate anchor snap_rounding_2_fct found

https://github.com/CGAL/cgal/actions/runs/24199510293

@LeoValque
Copy link
Copy Markdown
Contributor Author

/force-build:v4

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

There was an error while building the doc:

/home/runner/work/cgal/cgal/build_doc/doc_tags/Snap_rounding_2.tag:1700: warning: Duplicate anchor snap_rounding_2_fct found

https://github.com/CGAL/cgal/actions/runs/24200716043

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants