From 2a9ca610acdd24ebf1a215f779bf2a5d9f80d9cf Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 24 Dec 2017 15:35:54 +0100 Subject: Move Delaunay propagation function Signed-off-by: pacien --- include/morpher/quadrilateral.h | 11 ----------- include/morpher/trianglemap.h | 10 ++++++++++ 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'include') diff --git a/include/morpher/quadrilateral.h b/include/morpher/quadrilateral.h index 8691263..c8cf3a1 100644 --- a/include/morpher/quadrilateral.h +++ b/include/morpher/quadrilateral.h @@ -36,15 +36,4 @@ void quadrilateral_flip_diagonal(TriangleMap *t1, TriangleMap *t2); */ bool quadrilateral_is_delaunay(TriangleMap *t1, TriangleMap *t2); -/** - * Function: quadrilateral_propagate_delaunay - * Ensures that the quadrilateral spawned by the given triangles fulfills the Delaunay criterion, - * flipping the diagonal if necessary and propagating the changes to the neighbouring triangles. - * - * Parameters: - * *start - the starting triangle - * *neighbor - a neighboring triangle - */ -void quadrilateral_propagate_delaunay(TriangleMap *start, TriangleMap *neighbor); - #endif diff --git a/include/morpher/trianglemap.h b/include/morpher/trianglemap.h index 0bb6a1d..f690a37 100644 --- a/include/morpher/trianglemap.h +++ b/include/morpher/trianglemap.h @@ -115,6 +115,16 @@ void trianglemap_replace_neighbor(TriangleMap *t, TriangleMap *old, TriangleMap */ void trianglemap_foreach_neighbor(TriangleMap *t, void (*f)(TriangleMap *current, TriangleMap *neighbor)); +/** + * Function: trianglemap_propagate_delaunay + * Ensures that the quadrilateral spawned by the given triangles and its neighbours fulfill the Delaunay criterion, + * flipping the diagonal if necessary and propagating the changes to the neighbouring triangles. + * + * Parameters: + * *t - the starting triangle + */ +void trianglemap_propagate_delaunay(TriangleMap *t); + /** * Function: trianglemap_split * Splits a triangle into three sub-triangles at the supplied center vertex, updating the surrounding triangles. -- cgit v1.2.3