<< delaunay_n cglab dt2_get_connectivity >>

cglab >> cglab > dt2_delete

dt2_delete

Delete a pointer that represent dt2.

Calling Sequence

dt2_delete(ptr,"ptr")
dt2_delete()

Parameters

ptr
: is a pointer representing dt2 to be deleted.

Description

Given a pointer ptr of dt2, dt2_delete(ptr,"ptr") frees the memory hold by the pointer ptr and clears ptr in Scilab interpreter. If no parameters are given to dt2_delete(), then all pointers of differents dt2 will be deleted.

Examples

x = rand(1,10);
y = rand(1,10);
new_x = rand(1,10);
new_y = rand(1,10);
//example 1:

[tri,ptr] = delaunay_2(x,y);
dt2_insert_points(ptr,new_x,new_y);
new_tri = dt2_get_connectivity(ptr);
dt2_delete(ptr,"ptr"); // ptr is deleted here and cleared from the scilab interpreter.
ptr
//example 2:
[tri1,ptr1] = delaunay_2(rand(1,10),rand(1,10));
clear ptr1; // ptr1 is cleared from a scilab interpreter, but the memory is not freed yet.
dt2_delete(); // all pointers of dt2 will be deleted.

See Also

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

Authors


Report an issue
<< delaunay_n cglab dt2_get_connectivity >>