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__
tests/OutFiles
*.pyc
*.so
*.whl
*.gz
.eggs/
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_POSITION_INDEPENDENT_CODE ON)
......@@ -16,10 +18,23 @@ if (NOT WIN32)
)
endif ()
vci_append_files(HEADERS "src/*.hh" .)
vci_append_files(SOURCES "src/*.cc" .)
set( HEADERS
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})
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.
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])
om.write_mesh('test.off', mesh)
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
......
......@@ -7,9 +7,9 @@
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
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"
rm -f "$name.zip"
done
......
......@@ -14,17 +14,16 @@ We provide prebuilt wheels for manual installation with `pip` for the following
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.5 <https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.5-linux>`_
* `Python 3.9 <https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.9-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.5 <https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/-/jobs/artifacts/master/browse/release?job=deploy-3.5-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.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
^^^^^^^
* `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
^^^^^^^^^^^^^^^^^^^^
......
......@@ -29,8 +29,8 @@ class CMakeBuild(build_ext):
if platform.system() == "Windows":
cmake_version = LooseVersion(re.search(r'version\s*([\d.]+)', out.decode()).group(1))
if cmake_version < '3.1.0':
raise RuntimeError("CMake >= 3.1.0 is required on Windows")
if cmake_version < '3.3.0':
raise RuntimeError("CMake >= 3.3.0 is required on Windows")
for ext in self.extensions:
self.build_extension(ext)
......@@ -81,7 +81,7 @@ class CMakeBuild(build_ext):
setup(
name='openmesh',
version="1.1.6",
version="1.2.1",
author='Alexander Dielen, Isaak Lim, Janis Born',
author_email='vci-pypi@cs.rwth-aachen.de',
description='a versatile halfedge-based data structure for representing and manipulating polygon meshes',
......@@ -94,17 +94,14 @@ setup(
install_requires=['numpy'],
options={'build': {'build_base': 'build-setuptools'}},
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=[
'Development Status :: 4 - Beta',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.9',
'Topic :: Multimedia :: Graphics',
],
project_urls={
'Source':'https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python',
'Tracker':'https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python/issues',
'Source':'https://gitlab.vci.rwth-aachen.de:9000/OpenMesh/openmesh-python',
'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