dehomogenize_numpy

compas.geometry.dehomogenize_numpy(points)[source]

Dehomogenizes points or vectors.

Parameters

points (list of Points or list of Vectors)

Returns

numpy.ndarray

Examples

>>> points = [[1, 1, 1, 0], [0, 1, 0, 0], [1, 0, 0, 0]]
>>> res = dehomogenize_numpy(points)
>>> np.allclose(res, [[1.0, 1.0, 1.0], [0.0, 1.0, 0.0], [1.0, -0.0, 0.0]])
True