CGAL / cgal-swig-bindings

CGAL bindings using SWIG
Other
346 stars 93 forks source link

How to use the Alpha wrapping on python #239

Open NahomKidane opened 1 year ago

NahomKidane commented 1 year ago

Hello everyone!

I am trying to replicate the C++ example in Python, but unsure how to pass surface mesh correctly. Can anyone give me a quick hint or snippet? I am still new to CGAL. (https://doc.cgal.org/latest/Alpha_wrap_3/Alpha_wrap_3_2triangle_mesh_wrap_8cpp-example.html)

How can I also pass data to Pyvista/VTK (polydata) to show the final output?

Thanks!

buecherregal2 commented 1 year ago

Hello, I have the same problem. I want to alpha wrap a .stl file in python 3.10 but I don't know how I can import my geometry to pass it to the function. I installed CGAL with "pip install CGAL", and I can import modules with "from CGAL import CGAL_Polygon_mesh_processing as pmp" and then I can look at the functions of the module. However, iostreams is not listed. Is there a way to import a .stl (or any other format) into CGAL in python? Thank you!

hbb1 commented 4 months ago

Hello, I also have the same question.