<< dt2_delete CG-lab dt2_insert_points >>

CG-lab >> CG-lab > dt2_get_connectivity

dt2_get_connectivity

Get the connectivity of dt2

Calling Sequence

tri = dt2_get_connectivity(ptr);

Parameters

ptr
: is a pointer representing dt2.
tri
: is (nbtriangles,3) array, Each row of tri defines one triangle.

Description

Given a pointer ptr of dt2, tri = dt2_get_connectivity (ptr) allows to get the connectivity of dt2.

Examples

x = rand(1,10);
y = rand(1,10);
[tri,ptr] = delaunay_2(x,y);
new_x = rand(1,10);
new_y = rand(1,10);
dt2_insert_points(ptr,new_x,new_y);
new_tri = dt2_get_connectivity(ptr)
dt2_delete(ptr,"ptr");

See Also

This function uses the Triangulation_2 package of CGAL, which is under QPL license. See License Terms

Authors

<< dt2_delete CG-lab dt2_insert_points >>