Skip to content

Commit

Permalink
Merge pull request #8268 from janetournois/Mesh_3-fix_concept-jtournois
Browse files Browse the repository at this point in the history
Mesh_3 - fix concept `MeshFacetCriteria_3`
  • Loading branch information
lrineau committed Jun 12, 2024
2 parents ff6e9d2 + 4d48652 commit d5aa8b1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Mesh_3/doc/Mesh_3/Concepts/MeshFacetCriteria_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ a natural model of this concept.
*/
typedef unspecified_type Is_facet_bad;

/*!
* Numerical type.
*/
typedef unspecified_type FT;

/// @}

/// \name Operations
Expand All @@ -73,6 +78,12 @@ The type `Tr` must be identical to the triangulation type used by the mesh gener
*/
Is_facet_bad operator()(const Tr& tr, Facet f);

/**
* @returns the squared value of minimal radius bound if set,
* and `std::nullopt` otherwise
*/
std::optional<FT> squared_min_radius_bound() const;

/// @}

}; /* end MeshFacetCriteria_3 */
4 changes: 4 additions & 0 deletions Mesh_3/include/CGAL/Mesh_facet_criteria_3.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ class Mesh_facet_criteria_3
return topology_;
}

/**
* @returns the squared value of minimal radius bound if it was set,
* and `std::nullopt` otherwise
*/
std::optional<FT> squared_min_radius_bound() const {
if(squared_min_radius_bound_)
return *squared_min_radius_bound_;
Expand Down

0 comments on commit d5aa8b1

Please sign in to comment.