Commit ae18139c authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[python] move intersections to geometry module

parent b1171049
add_subdirectory(common)
add_subdirectory(geometry)
add_subdirectory(intersection)
add_subdirectory(io)
add_subdirectory(magnitude)
add_subdirectory(occutilities)
......
......@@ -16,8 +16,8 @@
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
#ifndef FRACKIT_PYTHON_INTERSECT_HH
#define FRACKIT_PYTHON_INTERSECT_HH
#ifndef FRACKIT_PYTHON_GEOMETRY_INTERSECT_HH
#define FRACKIT_PYTHON_GEOMETRY_INTERSECT_HH
#include <vector>
#include <variant>
......
install(FILES
intersect.hh
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/frackit/python/intersection)
add_subdirectory(common)
add_subdirectory(entitynetwork)
add_subdirectory(geometry)
add_subdirectory(intersection)
add_subdirectory(io)
add_subdirectory(magnitude)
add_subdirectory(occutilities)
......
......@@ -43,6 +43,7 @@
#include <frackit/python/geometry/distance.hh>
#include <frackit/python/geometry/distancetoboundary.hh>
#include <frackit/python/geometry/intersect.hh>
PYBIND11_MODULE(_geometry, module)
{
......@@ -81,4 +82,7 @@ PYBIND11_MODULE(_geometry, module)
// distance queries
Frackit::Python::registerComputeDistance<double>(module);
Frackit::Python::registerComputeDistanceToBoundary<double>(module);
// intersection functions
Frackit::Python::registerIntersectionFunctions<double>(module);
}
frackit_symlink_or_copy(FILES __init__.py)
pybind11_add_module(_intersection _intersection.cc)
target_link_libraries(_intersection PRIVATE ${OCC_LIBS})
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
#include <pybind11/pybind11.h>
#include <frackit/python/intersection/intersect.hh>
PYBIND11_MODULE(_intersection, module)
{
Frackit::Python::registerIntersectionFunctions<double>(module);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment