reverse_geometric_key

compas.utilities.reverse_geometric_key(gkey)[source]

Reverse a geometric key string into xyz coordinates.

Parameters

gkey (str) – A geometric key.

Returns

list[float] – A list of XYZ coordinates.

See also

geometric_key

Examples

>>> from math import pi
>>> xyz = [pi, pi, pi]
>>> gkey = geometric_key(xyz)
>>> reverse_geometric_key(gkey)
[3.142, 3.142, 3.142]