<< dt3_remove_points CG-lab dtn_get_connectivity >>

CG-lab >> CG-lab > dtn_delete

dtn_delete

Delete a pointer representing dtn.

Calling Sequence

dtn_delete(ptr,"ptr")
dtn_delete()

Parameters

ptr
: is a pointer representing dtn to be deleted.

Description

Given a pointer ptr of dtn, dtn_delete(ptr,"ptr") frees the memory hold by the pointer ptr and clears ptr in Scialb interpreter. If no parameters are given to dtn_delete(), then all pointers of differents dtn 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_n([x' y']);
dtn_insert_points(ptr,[new_x' new_y']);
new_tri = dtn_get_connectivity(ptr);
dtn_delete(ptr,"ptr"); // ptr is deleted here and cleared from scilab interpreter.
ptr
//example 2:
[tri1,ptr1] = delaunay_2(rand(1,10), rand(1,10));
clear ptr1; // ptr1 is cleared from the sciab interpreter, but the memory is not freed yet.
dtn_delete(); // all pointers of dtn will be deleted.

See Also

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

Authors

<< dt3_remove_points CG-lab dtn_get_connectivity >>