Git Product home page Git Product logo

cgal4py's Introduction

README

cgal4py is a Python interface for using the CGAL Delaunay triangulation classes in any number of dimensions. Triangulation in parallel is also supported using the algorithm described in Peterka, Morozov, & Phillips (2014). Documentation for cgal4py can be found here.

Licensing

cgal4py is released as open source software under a BSD license.

Requirements

For running in serial:

  • Python 2.7
  • C++14 compiler
  • Cython
  • CGAL Version 3.5 or higher is required for periodic triangulations in 3D and version 4.9 or higher is required for periodic triangulations in 2D.

For running in parallel you will need the above plus:

Installation

From Source

  1. Clone the cgal4py package using git. $ git clone https://github.com/langmm/cgal4py.git
  2. From the distribution directory, execute the install script. $ python setup.py install If you do not have administrative privileges, add the flag --user to the above command and the package will be installed in your user package directory.

Who do I talk to?

This package is currently maintained by Meagan Lang

cgal4py's People

Contributors

langmm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cgal4py's Issues

building 'cgal4py.delaunay.delaunay2' extension

Hey,

When building by source on Mac with -std=gnu++14 using gcc, I receive the following error.

any idea how to fix it? Thanks

building 'cgal4py.delaunay.delaunay2' extension
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/miniconda3/include -arch x86_64 -I/Applications/miniconda3/include -arch x86_64 -DNPY_NO_DEPRECATED_API -DCGAL_EIGEN3_ENABLED=1 -Icgal4py/delaunay -I./cgal4py/delaunay -I/Applications/miniconda3/lib/python3.7/site-packages/numpy/core/include -I/usr/local/Cellar/eigen/3.3.7/include/eigen3 -I/usr/local/Cellar/boost/1.72.0 -I/Applications/miniconda3/include/python3.7m -c cgal4py/delaunay/delaunay2.cpp -o build/temp.macosx-10.9-x86_64-3.7/cgal4py/delaunay/delaunay2.o -std=gnu++14
cgal4py/delaunay/delaunay2.cpp:22501:44: error: no matching member function for call to 'serialize_info2idx'
__pyx_v_idx_inf = __pyx_v_self->T->serialize_info2idx<uint64_t>(__pyx_v_n, __pyx_v_m, __pyx_v_d, (&(*__Pyx_BufPtrStrided2d(__pyx_t_5numpy_uint...
~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgal4py/delaunay/c_delaunay2.hpp:944:5: note: candidate function template not viable: no known conversion from '__pyx_t_5numpy_uint64_t *'
(aka 'unsigned long *') to 'unsigned long long ' for 4th argument
I serialize_info2idx(I &n, I &m, int32_t &d,
^
cgal4py/delaunay/delaunay2.cpp:22629:11: error: no matching function for call to 'sortSerializedTess'
sortSerializedTess<uint64_t>((&(
__Pyx_BufPtrStrided2d(__pyx_t_5numpy_uint64_t *, __pyx_pybuffernd_cells.rcbuffer->pybuffer.buf, __pyx_t_18...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
cgal4py/delaunay/c_tools.hpp:201:6: note: candidate function template not viable: no known conversion from '__pyx_t_5numpy_uint64_t *' (aka 'unsigned long *')
to 'unsigned long long *' for 1st argument
void sortSerializedTess(I *cells, I *neigh,
^
2 errors generated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.