gf_slice_set

Purpose

General function for editing mesh_slice objects.

Synopsis

Description

gf_slice_set(sl,'pts',P) replaces the original points of the slice sl with new points given in the matrix P (stored in the columns). Note that you can use the function in order to apply a deformation to a slice, or to change the dimension of the slice (i.e. the number of rows of P is not required to be equal to gf_slice_get(sl,'dim')).

See Also