point_list_to_dict

compas_slicer.utilities.point_list_to_dict(pts_list)[source]

Turns a list of compas.geometry.Point into a dictionary, so that it can be saved to Json. Works identically for 3D vectors.

Parameters:

pts_list (list, compas.geometry.Point / compas.geometry.Vector)

Returns:

dict (The dictionary of pts in the form { key=index : [x,y,z] })