bindings/python/dionysus.cpp
author Dmitriy Morozov <dmitriy@mrzv.org>
Fri, 24 Jul 2009 14:18:16 -0700
branchdev
changeset 145 ee096f207dfb
parent 144 baa53970eb88
child 146 4e27f1f7c169
permissions -rw-r--r--
Minor changes in distances.py + rips-pairwise.py wrapped into a main() function

#include <utilities/log.h>
#include <boost/python.hpp>

namespace bp = boost::python;

void export_simplex();
void export_filtration();
void export_static_persistence();
void export_chain();
void export_zigzag_persistence();

void export_rips();
#ifndef NO_CGAL
void export_alphashapes2d();
void export_alphashapes3d();
#endif

#ifdef LOGGING
void            enable_log(std::string s)
{
    stdoutLog.subscribeTo(RLOG_CHANNEL(s.c_str()));
}
#endif

BOOST_PYTHON_MODULE(_dionysus)
{
    export_simplex();
    export_filtration();
    export_static_persistence();
    export_chain();

    export_zigzag_persistence();

    export_rips();
#ifndef NO_CGAL
    export_alphashapes2d();
    export_alphashapes3d();
#endif

#ifdef LOGGING
    bp::def("enable_log",           &enable_log);
#endif
};