Skip to content
Snippets Groups Projects
Commit 96ad7df8 authored by Jan's avatar Jan
Browse files

Merge branch 'master' into track-OM-master

parents ffffb3ee d302c572
No related branches found
No related tags found
1 merge request!8Track om master
...@@ -3,6 +3,8 @@ tests/__pycache__ ...@@ -3,6 +3,8 @@ tests/__pycache__
tests/OutFiles tests/OutFiles
*.pyc *.pyc
*.so *.so
*.whl
*.gz
.eggs/ .eggs/
build-setuptools/ build-setuptools/
......
cmake_minimum_required(VERSION 3.1.0) cmake_minimum_required(VERSION 3.3.0)
project(openmesh) project(openmesh
VERSION 1.2.1
LANGUAGES CXX )
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON)
...@@ -16,10 +18,23 @@ if (NOT WIN32) ...@@ -16,10 +18,23 @@ if (NOT WIN32)
) )
endif () endif ()
vci_append_files(HEADERS "src/*.hh" .) set( HEADERS
vci_append_files(SOURCES "src/*.cc" .) src/Circulator.hh
src/Decimater.hh
src/InputOutput.hh
src/Iterator.hh
src/Mesh.hh
src/MeshTypes.hh
src/Miscellaneous.hh
src/Utilities.hh
)
set( SOURCES
src/Bindings.cc
src/InputOutput.cc
src/Miscellaneous.cc
)
include_directories(${OPENMESH_INCLUDE_DIRS})
pybind11_add_module(openmesh ${HEADERS} ${SOURCES}) pybind11_add_module(openmesh ${HEADERS} ${SOURCES})
if (WIN32) if (WIN32)
......
# OpenMesh Python Bindings (1.1.6) # OpenMesh Python Bindings (1.2.1)
[![](https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/badges/master/pipeline.svg)](https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/commits/master) [![](https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/badges/master/pipeline.svg)](https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/commits/master)
OpenMesh is a versatile halfedge-based data structure for representing and manipulating polygon meshes. OpenMesh is a versatile halfedge-based data structure for representing and manipulating polygon meshes.
The OpenMesh Python bindings are are tightly integrated with [numpy](http://www.numpy.org/) and are implemented using [pybind11](https://github.com/pybind/pybind11). The OpenMesh Python bindings are are tightly integrated with [numpy](http://www.numpy.org/) and are implemented using [pybind11](https://github.com/pybind/pybind11).
...@@ -49,7 +49,7 @@ point_array += np.array([1, 0, 0]) ...@@ -49,7 +49,7 @@ point_array += np.array([1, 0, 0])
om.write_mesh('test.off', mesh) om.write_mesh('test.off', mesh)
mesh_2 = om.read_trimesh('test.off') mesh_2 = om.read_trimesh('test.off')
``` ```
For further examples see the documentation or refer to the [unit tests](https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/tree/master/tests). For further examples see the documentation or refer to the [unit tests](https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/tree/master/tests).
## Installation ## Installation
......
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
revision=${1:-master} revision=${1:-master}
for name in "deploy-sdist" "deploy-2.7-macos" "deploy-3.5-macos" "deploy-2.7-linux" "deploy-3.5-linux" "deploy-3.7-VS2017" for name in "deploy-sdist" "deploy-3.9-macos-m1" "deploy-3.9-macos" "deploy-3.9-linux" "deploy-3.9-VS2017"
do do
wget "https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/$revision/download?job=$name" -O "$name.zip" wget "https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/$revision/download?job=$name" -O "$name.zip"
unzip "$name.zip" unzip "$name.zip"
rm -f "$name.zip" rm -f "$name.zip"
done done
......
...@@ -14,17 +14,16 @@ We provide prebuilt wheels for manual installation with `pip` for the following ...@@ -14,17 +14,16 @@ We provide prebuilt wheels for manual installation with `pip` for the following
Linux Linux
^^^^^ ^^^^^
* `Python 2.7 <https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-2.7-linux>`_ * `Python 3.9 <https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.9-linux>`_
* `Python 3.5 <https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.5-linux>`_
macOS 10.13 macOS
^^^^^^^^^^^ ^^^^^^^^^^^
* `Python 2.7 <https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-2.7-macos>`_ * `Python 3.9 X86 <https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.9-macos>`_
* `Python 3.5 <https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.5-macos>`_ * `Python 3.9 ARM64 (M1) <https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.9-macos-m1>`_
Windows Windows
^^^^^^^ ^^^^^^^
* `Python 3.6 <https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.6-VS2017>`_ * `Python 3.9 <https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.9-VS2017>`_
Building from source Building from source
^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^
......
...@@ -29,8 +29,8 @@ class CMakeBuild(build_ext): ...@@ -29,8 +29,8 @@ class CMakeBuild(build_ext):
if platform.system() == "Windows": if platform.system() == "Windows":
cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1)) cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
if cmake_version < '3.1.0': if cmake_version < '3.3.0':
raise RuntimeError("CMake >= 3.1.0 is required on Windows") raise RuntimeError("CMake >= 3.3.0 is required on Windows")
for ext in self.extensions: for ext in self.extensions:
self.build_extension(ext) self.build_extension(ext)
...@@ -81,7 +81,7 @@ class CMakeBuild(build_ext): ...@@ -81,7 +81,7 @@ class CMakeBuild(build_ext):
setup( setup(
name='openmesh', name='openmesh',
version="1.1.6", version="1.2.1",
author='Alexander Dielen, Isaak Lim, Janis Born', author='Alexander Dielen, Isaak Lim, Janis Born',
author_email='vci-pypi@cs.rwth-aachen.de', author_email='vci-pypi@cs.rwth-aachen.de',
description='a versatile halfedge-based data structure for representing and manipulating polygon meshes', description='a versatile halfedge-based data structure for representing and manipulating polygon meshes',
...@@ -94,17 +94,14 @@ setup( ...@@ -94,17 +94,14 @@ setup(
install_requires=['numpy'], install_requires=['numpy'],
options={'build': {'build_base': 'build-setuptools'}}, options={'build': {'build_base': 'build-setuptools'}},
license='BSD 3-Clause', license='BSD 3-Clause',
url='https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python', url='https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python',
classifiers=[ classifiers=[
'Development Status :: 4 - Beta', 'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.9',
'Topic :: Multimedia :: Graphics', 'Topic :: Multimedia :: Graphics',
], ],
project_urls={ project_urls={
'Source':'https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python', 'Source':'https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python',
'Tracker':'https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/issues', 'Tracker':'https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/issues',
} }
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment