Scilab Function
Last update : November 2005

cgal_cdt2_remove_points - Remove the existante points from cdt2.

Calling Sequence

cgal_cdt2_remove_points(ptr,x,y);

Parameters

Description

Given a pointer ptr of cdt2, cgal_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] = cgal_constraind_delaunay_2(x,y,[])
 ptr  =
 tri  =
!   2.    1.    3. !
cgal_cdt2_insert_points(ptr,new_x,new_y);
tri2 = cgal_cdt2_get_connectivity(ptr)
 tri2  =
!   5.    2.    4. !
!   4.    1.    3. !
!   2.    1.    4. !
!   5.    4.    3. !
!   6.    2.    5. !
!   3.    6.    5. !
!   1.    7.    3. !
!   1.    2.    7. !
cgal_cdt2_remove_points(ptr,new_x,new_y);
tri3 = cgal_cdt2_get_connectivity(ptr)
 tri3  =
!   3.    2.    1. !
cgal_cdt2_delete(ptr,"ptr");
 
  

See Also

cgal_cdt2_insert_constraints ,   cgal_cdt2_remove_constraints ,   cgal_cdt2_insert_points ,   cgal_cdt2_get_coord ,   cgal_cdt2_get_connectivity ,   cgal_cdt2_delete ,  

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

Authors

Naceur MESKINI.