array2_from_floats2

compas_occ.conversions.array2_from_floats2(numbers)

Construct a two-dimensional real array from a list of lists of floats.

Parameters:
numberslist[list[float]]
Returns:
TColStd_Array2OfReal

Examples

>>> from compas_occ.conversions import array2_from_floats2
>>> floats2 = [
...     [0.0, 0.0, 0.0],
...     [1.0, 0.0, 0.0],
...     [2.0, 0.0, 0.0],
... ]
>>> array2 = array2_from_floats2(floats2)
>>> array2  
<OCC.Core.TColStd.TColStd_Array2OfReal; ... >