Merge remote-tracking branch 'origin/Weights-new_package-danston' into Barycentric_coordinates_2-danston

This commit is contained in:
Dmitry Anisimov 2021-06-25 12:54:12 +02:00
commit ad6218a93a
3 changed files with 8 additions and 7 deletions

View File

@ -11,9 +11,7 @@ int main() {
// Create a polygon and a query point.
const std::vector<Point_2> polygon =
{ Point_2(0, 0), Point_2(1, 0), Point_2(1, 1), Point_2(0, 1) };
const FT half = FT(1) / FT(2);
const Point_2 query(half, half);
const Point_2 query(0.5, 0.5);
// Allocate memory for weights and coordinates.
std::vector<FT> weights;

View File

@ -16,9 +16,7 @@ int main() {
// Create a polygon and a query point.
const std::vector<Point_3> polygon =
{ Point_3(0, 0, 1), Point_3(1, 0, 1), Point_3(1, 1, 1), Point_3(0, 1, 1) };
const FT half = FT(1) / FT(2);
const Point_3 query(half, half, 1);
const Point_3 query(0.5, 0.5, 1);
// Allocate memory for weights.
std::vector<FT> weights;
@ -38,7 +36,7 @@ int main() {
std::cout << std::endl;
// Almost coplanar case.
const FT eps = FT(1) / FT(1000);
const FT eps = 0.001;
const Point_3 t3(-1, 0, 1.0 + eps);
const Point_3 r3( 0, -1, 1);
const Point_3 p3( 1, 0, 1.0 + eps);

View File

@ -16,6 +16,11 @@
#include <CGAL/license/Weights.h>
/**
@file Weights.h
@brief a convenience header that includes all weights.
*/
#include <CGAL/Weights/utils.h>
#include <CGAL/Weights/uniform_weights.h>