Closed petrasvestartas closed 2 years ago
Hi,
I would like to ask what does the star symbol mean in Slicer: https://github.com/compas-dev/compas_cgal/blob/main/tests/test_slicer.py
Does the Point(*point) has something to do with the pointers in C++?
polylines = [] for points in pointsets: points = [Point(*point) for point in points] polyline = Polyline(points) polylines.append(polyline)
It seems this has nothing to do with C++ code just unpacking of positional variables: https://stackoverflow.com/questions/2921847/what-does-the-star-and-doublestar-operator-mean-in-a-function-call
Hi,
I would like to ask what does the star symbol mean in Slicer: https://github.com/compas-dev/compas_cgal/blob/main/tests/test_slicer.py
Does the Point(*point) has something to do with the pointers in C++?