<< cdt2_remove_constraints cglab cgal_stream_2 >>

cglab >> cglab > cdt2_remove_points

cdt2_remove_points

Remove the existante points from cdt2.

Calling Sequence

cdt2_remove_points(ptr,x,y);

Parameters

x , y
: are vectors of coordinates of points to remove from cdt2.
ptr
: is a pointer representing cdt2.

Description

Given a pointer ptr of cdt2, cdt2_remove_points(ptr,x,y) removes (x,y) points from cdt2. All points of (x,y) points that are incidents to the constraint edges will not be removed.

Examples

x = [5 1 6];
y = [2 6 6];
new_x = [2 4 5 5];
new_y = [6 7 8 1];
[tri,ptr] = constrained_delaunay_2(x,y,[])
cdt2_insert_points(ptr,new_x,new_y);
tri2 = cdt2_get_connectivity(ptr)
cdt2_remove_points(ptr,new_x,new_y);
tri3 = cdt2_get_connectivity(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_remove_constraints cglab cgal_stream_2 >>