Fonction Scilab
Last update : November 2005

cgal_dtn_insert_points - Insert new points in dtn.

Calling Sequence

cgal_dtn_insert_points(ptr,new_points);

Parameters

Description

Given a pointer ptr of dtn, cgal_dtn_insert_points(ptr,new_points) inserts a new points in dtn.

Examples

		

x = rand(1,5);
y = rand(1,5);
z = rand(1,5);
points = [x' y' z'];
[tri,ptr] = cgal_delaunay_n(points)
tri =
!   2.    5.    3.    4. !
!   2.    1.    3.    5. !

new_x = rand(1,2);
new_y = rand(1,2);
new_z = rand(1,2);
new_points = [new_x' new_y' new_z'];
cgal_dtn_insert_points(ptr,new_points);
new_tri = cgal_dtn_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_dtn_delete(ptr,"ptr");

						 
	

See Also

cgal_delaunay_n ,   cgal_dtn_get_connectivity ,   cgal_dtn_delete ,  

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

Authors

Naceur MESKINI.