<< cdt2_get_connectivity cglab cdt2_insert_constraints >>

cglab >> cglab > cdt2_get_coord

cdt2_get_coord

Get coordinates of vertices of cdt2.

Calling Sequence

coord = cdt2_get_coord(ptr)

Parameters

coord
: is (nbvertices,2) array defininig (x,y) coordinates of vertices of cdt2.
ptr
: is a pointer representing cdt2.

Examples

x = [5 1 6];
y = [2 6 6];
C=[8.    2.     7.    4.;6.    4.5    4.    5.;3.    6.     3.    7.;3.    4.     2.    3.;9.    4.     8.    7.];
[tri,ptr] = constrained_delaunay_2(x,y,C);
coord = cdt2_get_coord(ptr) 
cdt2_delete(ptr,"ptr");

See Also

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

Authors


Report an issue
<< cdt2_get_connectivity cglab cdt2_insert_constraints >>