compas-dev / compas_cgal

COMPAS package for working with CGAL.
https://compas.dev/compas_cgal
GNU Lesser General Public License v3.0
23 stars 5 forks source link

Conversion from eigen matrix #16

Closed petrasvestartas closed 2 years ago

petrasvestartas commented 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)
petrasvestartas commented 2 years ago

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