mirror of https://github.com/CGAL/cgal
Merge remote-tracking branch 'origin/Weights-new_package-danston' into Barycentric_coordinates_2-danston
This commit is contained in:
commit
ad6218a93a
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue