Fonction Scilab
Last update : November 2005

cgal_dt3_insert_points - Insert new points in dt3.

Calling Sequence

cgal_dt3_insert_points(ptr,new_x,new_y,new_z);

Parameters

Description

Given a pointer ptr of dt3, cgal_dt3_insert_points(ptr,new_x,new_y) inserts a new points in dt3.

Examples



x = rand(1,5);
y = rand(1,5);
z = rand(1,5);
[tri,ptr] = cgal_delaunay_3(x,y,z)
tri =
!   2.    5.    3.    4. !
!   2.    1.    3.    5. ! 
  
new_x = rand(1,2);
new_y = rand(1,2);  
new_z = rand(1,2); 
cgal_dt3_insert_points(ptr,new_x,new_y,new_z);
new_tri = cgal_dt3_get_connectivity(ptr)
 new_tri  =
!   7.    5.    3.    4. !
!   6.    2.    3.    4. !
!   2.    7.    3.    4. !
!   2.    5.    7.    4. !
!   7.    2.    6.    5. !
!   1.    7.    6.    5. !
!   3.    1.    7.    6. !
!   3.    7.    2.    6. ! 
cgal_dt3_delete(ptr,"ptr");

 
  

See Also

cgal_delaunay_3 ,   cgal_dt3_get_connectivity ,   cgal_dt3_remove_points ,   cgal_dt3_delete ,  

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

Authors

Naceur MESKINI.