gf_geotrans_get
Synopsis
int I = gf_geotrans_get(geotrans GT, 'dim') int I = gf_geotrans_get(geotrans GT, 'is_linear') int n = gf_geotrans_get(geotrans GT, 'nbpts') mat P = gf_geotrans_get(geotrans GT, 'pts') mat N = gf_geotrans_get(geotrans GT, 'normals') mat Pts2 = gf_geotrans_get(geotrans GT, 'transform', G, Pts) string s = gf_geotrans_get(geotrans GT, 'char')
Description
gf_geotrans_get(GT, 'dim') is the dimension of the geometric transformation. This is the dimension of the source space, i.e. the dimension of the reference convex: gf_geotrans_get(gf_geotrans('GT_PK(x,K)'))==x. The dimension of the target space is the dimension of the mesh object using the geometric transformation.
gf_geotrans_get(GT, 'is_linear') : return 1 if the geometric transformation is linear, or 0 if it is not.
gf_geotrans_get(GT, 'nbpts') : return the number of points of the geometric transformation, and gf_geotrans_get(GT, 'pts') return the list of the points (in the reference convex) stored in the columns of an array.
gf_geotrans_get(GT,'normals') : output the normals on each face of the reference convex .
gf_geotrans_get(GT, 'transform', G, Pts) : apply the geometric transformation to the points pts: G is the set of vertices of the real convex, pts is the set of points (in the reference convex) that are to be transformed. The corresponding set of points in the real convex is returned.
gf_geotrans_get(GT,'char') : give a string description of the geometric transformation.
Examples
>> gt=gf_geotrans('GT_PK(2,1)'); gf_geotrans_get(gt,'pts') ans = 0 1 0 0 0 1 >> gt=gf_geotrans('GT_QK(2,2)'); gf_geotrans_get(gt,'pts') ans = 0 0.5 1 0 0.5 1 0 0.5 1 0 0 0 0.5 0.5 0.5 1 1 1 >> gf_geotrans_get(gt,'char') ans = GT_QK(2,1)
