gf_mesh_im_set

Purpose

General function for editing mesh_im objects.

Synopsis

gf_mesh_im_set(MIM, 'integ', { integ im | int IMDEGREE }, [, ivec CVIDX])

Description

gf_mesh_im_set(MIM, 'integ', im [, CVIDX]) : set im as the integration method for all the convexes listed in CVIDX in the mesh linked to MF. If CVIDX is not used, the im is assigned to all convexes.

gf_mesh_im_set(MIM, 'integ', IM_DEGREE [, CVIDX]) : assign a classical approximate integration method of order at least IM_DEGREE on the listed convexes. If IM_DEGREE=-1, then the dummy integration method 'IM_NONE' is used.

Examples

mim=gfMeshIm(m);
% set an integration method of order 5 on all convexes
gf_mesh_im_set(mim,'integ',5); 
% change the integration for convexes 5 6 9
gf_mesh_im_set(mim,'integ',gf_integ('IM_TRIANGLE(13)'),[6 5 9]);