integrating review

This commit is contained in:
Sven Oesau 2025-10-27 16:11:46 +01:00
parent 79023a550b
commit 9b224e2d71
6 changed files with 39 additions and 38 deletions

View File

@ -30,7 +30,7 @@ int main() {
// Get an array of triangle coordinates for all query points
for(std::size_t i = 0; i < queries.size(); i++){
const auto coords_array =
CGAL::Barycentric_coordinates::tetrahedron_coordinates_in_array(p0, p1, p2, p3, queries[i]);
CGAL::Barycentric_coordinates::tetrahedron_coordinates(p0, p1, p2, p3, queries[i]);
std::cout << "tetrahedra coordinates (query " << i << "): " <<
coords_array[0] << " " << coords_array[1] << " " <<

View File

@ -103,10 +103,10 @@ public:
an instance of `VertexPointMap` that maps a vertex from `tmesh` to `Point_3`;
the default initialization is provided
\pre num_vertices(`tmesh`) >= 4.
\pre is_triangle_mesh(`tmesh`).
\pre is_closed(`tmesh`).
\pre is_strongly_convex_3(`tmesh`).
\pre boost::num_vertices(`tmesh`) >= 4.
\pre CGAL::is_triangle_mesh(`tmesh`).
\pre CGAL::is_closed(`tmesh`).
\pre CGAL::is_strongly_convex_3(`tmesh`).
*/
Discrete_harmonic_coordinates_3(const TriangleMesh& tmesh,
const Computation_policy_3 policy,
@ -393,10 +393,10 @@ private:
\return an output iterator to the element in the destination range,
one past the last coordinate stored
\pre num_vertices(`tmesh`) >= 4.
\pre is_triangle_mesh(`tmesh`).
\pre is_closed(`tmesh`).
\pre is_strongly_convex_3(`tmesh`).
\pre boost::num_vertices(`tmesh`) >= 4.
\pre CGAL::is_triangle_mesh(`tmesh`).
\pre CGAL::is_closed(`tmesh`).
\pre CGAL::is_strongly_convex_3(`tmesh`).
*/
template<typename Point_3,
typename TriangleMesh,

View File

@ -105,9 +105,9 @@ public:
an instance of `VertexPointMap` that maps a vertex from `tmesh` to `Point_3`;
the default initialization is provided
\pre num_vertices(`tmesh`) >= 4.
\pre is_triangle_mesh(`tmesh`).
\pre is_closed(`tmesh`).
\pre boost::num_vertices(`tmesh`) >= 4.
\pre CGAL::is_triangle_mesh(`tmesh`).
\pre CGAL::is_closed(`tmesh`).
*/
Mean_value_coordinates_3(const TriangleMesh& tmesh,
const Computation_policy_3 policy,
@ -386,7 +386,7 @@ private:
must be a model of the concept `FaceListGraph`
\tparam OutputIterator
a model of `OutputIterator` that accepts values of type `GeomTraits::FT`
a model of `OutputIterator` that accepts values of type `Kernel_traits<Point_3>::Kernel::FT`
\param tmesh
an instance of `TriangleMesh`
@ -404,9 +404,9 @@ private:
\return an output iterator to the element in the destination range,
one past the last coordinates stored
\pre num_vertices(`tmesh`) >= 4.
\pre is_triangle_mesh(`tmesh`).
\pre is_closed(`tmesh`).
\pre boost::num_vertices(`tmesh`) >= 4.
\pre CGAL::is_triangle_mesh(`tmesh`)
\pre CGAL::is_closed(`tmesh`).
*/
template<typename Point_3,
typename TriangleMesh,

View File

@ -104,10 +104,10 @@ public:
an instance of `VertexPointMap` that maps a vertex from `tmesh` to `Point_3`;
the default initialization is provided
\pre num_vertices(`tmesh`) >= 4.
\pre is_triangle_mesh(`tmesh`).
\pre is_closed(`tmesh`).
\pre is_strongly_convex_3(`tmesh`).
\pre boost::num_vertices(`tmesh`) >= 4.
\pre CGAL::is_triangle_mesh(`tmesh`).
\pre CGAL::is_closed(`tmesh`).
\pre CGAL::is_strongly_convex_3(`tmesh`).
*/
Wachspress_coordinates_3(const TriangleMesh& tmesh,
const Computation_policy_3 policy,
@ -364,10 +364,10 @@ private:
\return an output iterator to the element in the destination range,
one past the last coordinate stored
\pre num_vertices(`tmesh`) >= 4.
\pre is_triangle_mesh(`tmesh`).
\pre is_closed(`tmesh`).
\pre is_strongly_convex_3(`tmesh`).
\pre boost::num_vertices(`tmesh`) >= 4.
\pre CGAL::is_triangle_mesh(`tmesh`).
\pre CGAL::is_closed(`tmesh`).
\pre CGAL::is_strongly_convex_3(`tmesh`).
*/
template<typename Point_3,
typename TriangleMesh,

View File

@ -20,8 +20,8 @@
#include <CGAL/Barycentric_coordinates_3/barycentric_enum_3.h>
#include <CGAL/boost/graph/property_maps.h>
namespace CGAL{
namespace Barycentric_coordinates{
namespace CGAL {
namespace Barycentric_coordinates {
/*!
\ingroup PkgBarycentricCoordinates3RefFunctions
@ -72,10 +72,10 @@ namespace Barycentric_coordinates{
one past the last coordinate stored + the flag indicating whether the
query point belongs to the polyhedron boundary
\pre num_vertices(`tmesh`) >= 4.
\pre is_triangle_mesh(`tmesh`).
\pre is_closed(`tmesh`).
\pre is_strongly_convex_3(`tmesh`).
\pre boost::num_vertices(`tmesh`) >= 4.
\pre CGAL::is_triangle_mesh(`tmesh`).
\pre CGAL::is_closed(`tmesh`).
\pre CGAL::is_strongly_convex_3(`tmesh`).
*/
template<typename TriangleMesh,
typename OutputIterator,
@ -145,9 +145,10 @@ boundary_coordinates_3(const TriangleMesh& tmesh,
one past the last coordinate stored + the flag indicating whether the
query point belongs to the polyhedron boundary
\pre is_triangle_mesh(`tmesh`)
\pre num_vertices(`tmesh`) >= 4.
\pre `tmesh` is simplicial.
\pre boost::num_vertices(`tmesh`) >= 4.
\pre CGAL::is_triangle_mesh(`tmesh`)
\pre CGAL::is_closed(`tmesh`).
\pre CGAL::is_strongly_convex_3(`tmesh`).
*/
template<typename TriangleMesh,
typename Point_3,

View File

@ -18,8 +18,8 @@
#include <CGAL/Barycentric_coordinates_3/internal/utils_3.h>
namespace CGAL{
namespace Barycentric_coordinates{
namespace CGAL {
namespace Barycentric_coordinates {
/*!
\ingroup PkgBarycentricCoordinates3RefFunctions
@ -142,7 +142,7 @@ OutputIterator tetrahedron_coordinates(
*/
template<typename GeomTraits>
std::array<typename GeomTraits::FT, 4>
tetrahedron_coordinates_in_array(
tetrahedron_coordinates(
const typename GeomTraits::Point_3& p0,
const typename GeomTraits::Point_3& p1,
const typename GeomTraits::Point_3& p2,
@ -162,7 +162,7 @@ tetrahedron_coordinates_in_array(
//return array (infer from point_3)
template<typename Point_3>
std::array<typename Kernel_traits<Point_3>::Kernel::FT, 4>
tetrahedron_coordinates_in_array(
tetrahedron_coordinates(
const Point_3& p0,
const Point_3& p1,
const Point_3& p2,
@ -171,7 +171,7 @@ tetrahedron_coordinates_in_array(
using GeomTraits = typename Kernel_traits<Point_3>::Kernel;
const GeomTraits traits;
return tetrahedron_coordinates_in_array(
return tetrahedron_coordinates(
p0, p1, p2, p3, query, traits);
}