Subject: CGAL users discussion list
List archive
- From: rahulverma88 <>
- To:
- Subject: Re: [cgal-discuss] surface mesh creation and intersection in python
- Date: Thu, 19 Sep 2019 17:05:12 -0500 (CDT)
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
- Ironport-phdr: 9a23:DoLJJxSHQAJ0lKL97dOFgsAFZdpsv+yvbD5Q0YIujvd0So/mwa69bRyN2/xhgRfzUJnB7Loc0qyK6vumAzVLucvJ8ChbNsAVDVld0YRetjdjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9fbytScbdgMutyu+95YDYbRlWizqhe7NyKwi9oRnMusUMjoZuN6g8xgHXrndVdOha2WNlLk+Xkxrg+8u85pFu/zlOt/4768JMTaD2dLkkQLJFCzgrL3o779DxuxnZSguP6HocUmEInRdNHgPI8hL0UIrvvyXjruZy1zWUMsPwTbAvRDSt9LxrRwPyiCcGLDE27mfagdFtga1BoRKhoxt/w5PIYIyQKfFzcL/Rcc8cSGFcWMtaSi5PDZ6mb4YXAeQPPfhWoYr/qFsAsBWxChWjCuz0xz9UhHL6wbE23/g9HQ3Y2gErAtIAsG7TrNXwLKoSS/q6zKnVzTXHcfNZxy396I3SfR0iovyHQLV9cdDLxkkvCgPFikuQppL/PzOQzOsAsGuW4vFvVeKqkWEnqgVxriKzyccrj4nEn4QYwU3K+yV+xYY6P9y4SEhjbN6iCpRfrDqVN49oTc84X25ovyM6xqUJuZ66YCgKyIknyAXFZ/ObdIiI5xTuX/uSLzdgnH9pZbayihKo/UWuyeDwTMq53VdQoidEk9TBsG0G2QbJ5cidUPR9+1+s2TaR2ADX7eFJOUY0mKXBJ54n2LE/jYEcsUDdESPshEr2i6qWel0l+uiu9evnfq3rqoKYOoJwkA3zPKcjlta8DOk5KAQDXmmW9fy51LL5/E35RLtKjucxkqncqJ3aP94Upq6kAw9RzIYs9Qy/DzK839kbnnQKN11FeBedgIjoP1HCOuz3DfC6g1i0ijdk2+jGPqH9ApXKNnXMjLjhcqx560JF1QUzzMtf6I5JCrEaO/L+QVTxtdzdDh8hKQO42efnCNNn1oMfQ22DGKGZMLmB+WOPs+kgKu3JaI4OsyvmMNAk4eTvhDk3gwwzZ66siIEeaG28APl8JkzJMTK4mN4BDGMUsxA7Rby6oFKHWD9XIX21WvRvtXkAFIu6ANKbFciWi7ub0XLjR8EEViV9ElmJVEzQWcCcQf5VMXCdJ8ZglnoPUr3zE9ZwhyHrjxfzzv9cFsSR/yQZsZz5090svr/ckBgz8Xp/CMHPiDjQHVExpXsBQnoN5I46oUF5zQ7eg64kxfpRH9ZX6rVCVQJobJM=
I've actually been trying to use a Python interface to CGAL for a while now,
and I have not been able to do much with the CGAL Python bindings
(https://github.com/CGAL/cgal-swig-bindings) - the actual CGAL library is
far more feature-rich. I have found it much more useful to write out your
intersection functions in C++, and then pass it your points/lines as arrays
from Python using SWIG.
So your C++ function prototype looks like:
<return_type> cpp_function_for_mesh_intersection(double *xs, double *ys,
double *zs, int num_points);
Using SWIG, this can be compiled to a Python module,
and then your Python call will look like:
mesh_intersection_module.cpp_function_for_mesh_intersection(xs, ys, zs,
num_points)
It is not trivial to do all this, but it shouldn't be that hard either. I
don't think this is the best solution, but it worked for the specific thing
I was trying to do.
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] surface mesh creation and intersection in python, gregthom992, 09/19/2019
- Re: [cgal-discuss] surface mesh creation and intersection in python, rahulverma88, 09/20/2019
- Re: [cgal-discuss] surface mesh creation and intersection in python, gregthom992, 09/20/2019
- Re: [cgal-discuss] surface mesh creation and intersection in python, rahulverma88, 09/20/2019
- Re: [cgal-discuss] surface mesh creation and intersection in python, Sebastien Loriot (GeometryFactory), 09/25/2019
- Re: [cgal-discuss] surface mesh creation and intersection in python, gregthom992, 09/20/2019
- Re: [cgal-discuss] surface mesh creation and intersection in python, rahulverma88, 09/20/2019
Archive powered by MHonArc 2.6.18.