gf_geotrans_get — General function for querying information about geometric transformations objects.
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')
d = gf_geotrans_get(GT,'dim'): Get the dimension of the GeoTrans. This is the dimension of the source space, i.e. the dimension of the reference convex.
b = gf_geotrans_get(GT,'is_linear'): Return 0 if the GeoTrans is not linear.
n = gf_geotrans_get(GT,'nbpts'): Return the number of points of the GeoTrans.
P = gf_geotrans_get(GT,'pts'): Return the reference convex points of the GeoTrans. The points are stored in the columns of the output matrix.
N = gf_geotrans_get(GT,'normals'): Get the normals for each face of the reference convex of the GeoTrans. The normals are stored in the columns of the output matrix.
Po = gf_geotrans_get(GT,'poly_str'): Return the GeoTrans expressed as polynomials The result is expressed as a list of strings.
Pt = gf_geotrans_get(GT,'transform',mat G, mat Pr): Apply the
GeoTrans to a set of points. G
is the set of
vertices of the real convex, Pr
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.
s = gf_geotrans_get(GT,'char'): Output a (unique) string representation of the GeoTrans. This can be used to perform comparisons between two different GeoTrans objects.