MCPcopy
hub / github.com/CadQuery/cadquery / _floats_to_harray

Function _floats_to_harray

cadquery/occ_impl/shapes.py:5438–5448  ·  view source on GitHub ↗

Convert a sequence of floats to a TColstd harray (OCCT specific).

(vals: Sequence[float])

Source from the content-addressed store, hash-verified

5436
5437
5438def _floats_to_harray(vals: Sequence[float]) -> TColStd_HArray1OfReal:
5439 """
5440 Convert a sequence of floats to a TColstd harray (OCCT specific).
5441 """
5442
5443 rv = TColStd_HArray1OfReal(1, len(vals))
5444
5445 for i, val in enumerate(vals):
5446 rv.SetValue(i + 1, val)
5447
5448 return rv
5449
5450
5451def _shapes_to_toptools_list(s: Iterable[Shape]) -> TopTools_ListOfShape:

Callers 2

edgeOnFunction · 0.85
splineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected