cgal_dt3_delete - Delete a pointer that represent dt3.
Given a pointer ptr of dt3, cgal_dt3_delete(ptr,"ptr") frees the memory holded by the pointer ptr and clears ptr in Scialb interpreter. if no parameters are given to cgal_dt3_delete(), then, all pointers of differents dt3 will be deleted.
x = rand(1,10); y = rand(1,10); z = rand(1,10); new_x = rand(1,10); new_y = rand(1,10); new_z = rand(1,10); //example 1: [tri,ptr] = cgal_delaunay_3(x,y,z); cgal_dt3_insert_points(ptr,new_x,new_y,new_z); new_tri = cgal_dt3_get_connectivity(ptr); cgal_dt3_delete(ptr,"ptr"); // ptr is deleted here and cleared from scilab interpreter. ptr !--error 4 undefined variable : ptr //example 2: [tri1,ptr1] = cgal_delaunay_3(rand(1,10),rand(1,10),rand(1,10)); clear ptr1; // ptr is not yet defined in scilab interpreter, but the memory is not freed. cgal_dt3_delete(); // all pointers of dt3 will be deleted.
cgal_delaunay_3 , cgal_dt3_get_connectivity , cgal_dt3_insert_points , cgal_dt3_remove_points ,
This function uses the Triangulation_3 package of CGAL, which is under QPL license. See License Terms