Skip to content

Conversation

efifogel
Copy link
Member

Summary of Changes

Enhanced the drawing capabilities to draw arrangements induced by unbounded curves. This small feature consists of (i) additional draw() overloads for arrangements that also accepts a bounding box, and (ii) an additional requirement from the geometry traits for an operator that approximates a curve and also accepts a bounding box.

Release Management

  • Affected package(s): Arrangement_on_surface_2
  • Issue(s) solved (if any):
  • Feature/Small Feature (if any): Aos2 Unbounded Drawing
  • Link to compiled documentation (obligatory for small feature) doc_output
  • License and copyright ownership: TAU

* approximates the curve.
* \param oi An output iterator for the output containers.
* \param bbox the bounding box.
* \param l2r A Boolean flag that indicates whether the curve direction is
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* \param l2r A Boolean flag that indicates whether the curve direction is
* \param l2r A %Boolean flag that indicates whether the curve direction is

@afabri
Copy link
Member

afabri commented Aug 22, 2025

I do not see a typedef ... Approximate_number_type in the models of the concept

* `p`'s \f$y\f$-coordinate (if `i == 1`).
* \pre `i` is either 0 or 1.
*/
CGAL::Approximate_number_type operator()(AosTraits::Point_2 p, int i);
Copy link
Member

Choose a reason for hiding this comment

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

Do you really want to introduce CGAL::Approximate_number_type???

@@ -1517,9 +1518,24 @@ class Arr_linear_traits_2 : public Kernel_ {

/// \name Functor definitions for the landmarks point-location strategy.
//@{
typedef double Approximate_number_type;
typedef double Approximate_number_type;
typedef CGAL::Cartesian<Approximate_number_type> Approximate_kernel;
Copy link
Member

Choose a reason for hiding this comment

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

Is Cartesian better suited than Simple_cartesian?

@@ -17,6 +17,8 @@
* \cgalHasModelsEnd
*
* \sa `AosApproximatePointTraits_2`
* \sa `AosConstructXMonotoneCurveTraits_2`
* \sa `AosXMonotoneTraits_2`
* \sa `draw()`
Copy link
Member

Choose a reason for hiding this comment

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

This draw() has no link here

@afabri
Copy link
Member

afabri commented Aug 22, 2025

For the approximation business, wouldn't it be reasonable to use the CGAL::Cartesian_coverter?

@efifogel
Copy link
Member Author

efifogel commented Aug 22, 2025 via email

@efifogel
Copy link
Member Author

efifogel commented Aug 22, 2025 via email

@efifogel
Copy link
Member Author

efifogel commented Aug 22, 2025 via email

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