array1_from_floats1

compas_occ.conversions.array1_from_floats1(numbers)

Construct a one-dimensional float array from a list of floats.

Parameters:
numberslist[float]
Returns:
TColStd_Array1OfReal

Examples

>>> from compas_occ.conversions import array1_from_floats1
>>> floats1 = [0.0, 1.0, 2.0]
>>> array1 = array1_from_floats1(floats1)
>>> array1  
<OCC.Core.TColStd.TColStd_Array1OfReal; ... >