gf_slice_set(slice S, 'pts', mat P)

Description :

Edition of mesh slices.

Command list :

gf_slice_set(slice S, 'pts', mat P)

Replace the points of the slice.

The new points <literal>P</literal> are stored in the columns the matrix. Note that you can use the function to apply a deformation to a slice, or to change the dimension of the slice (the number of rows of <literal>P</literal> is not required to be equal to gf_slice_get(slice S, ‘dim’)).