Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-22.04, macOS-13, windows-2019]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
config: [Debug, Release]
include:
- os: ubuntu-22.04
Expand All @@ -47,7 +48,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
channels: conda-forge
python-version: 3.7
python-version: ${{ matrix.python-version }}
channel-priority: true
activate-environment: test-env

Expand All @@ -67,18 +68,18 @@ jobs:

- name: Build (Debug)
if: matrix.config == 'Debug'
run: |
python setup.py build --debug install
run: python -m pip install -v --config-settings="--build-option=build_ext" --config-settings="--build-option=--debug" .

- name: Build (Release)
if: matrix.config == 'Release'
run: python setup.py build install
run: python -m pip install -v .

- name: Fast Tests
run: |
python test/tri_test.py
python test/small_tet_test.py


- name: Slow Tests
if: matrix.config == 'Release'
run: |
Expand Down
4 changes: 2 additions & 2 deletions cmake/WildMeshingDownloadExternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ endfunction()

function(wildmeshing_download_tetwild)
wildmeshing_download_project(tetwild
GIT_REPOSITORY https://github.com/wildmeshing/fTetWild
GIT_TAG f471f09dd26006745387dd61694762f861c787b9
GIT_REPOSITORY https://github.com/MariusCausemann/fTetWild.git
GIT_TAG 725fdc3abfacfde2096496eb0b16f9db5e9b6293
)
endfunction()

Expand Down
11 changes: 5 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import re
import sys
import shlex
# import sysconfig
import platform
import subprocess
Expand Down Expand Up @@ -38,8 +39,10 @@ def build_extension(self, ext):
extdir = os.path.join(os.path.abspath(os.path.dirname(
self.get_ext_fullpath(ext.name))), "wildmeshing")

cmake_args = ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir,
cmake_args = shlex.split(os.environ.get("CMAKE_ARGS", ""))
cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir,
'-DPYTHON_EXECUTABLE=' + sys.executable,
'-DTBB_BUILD_TESTS=OFF', '-DTBB_TEST=OFF'
]

cfg = 'Debug' if self.debug else 'Release'
Expand All @@ -49,12 +52,8 @@ def build_extension(self, ext):
if platform.system() == "Windows":
cmake_args += [
'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_{}={}'.format(cfg.upper(), extdir)]
if os.environ.get('CMAKE_GENERATOR') != "NMake Makefiles":
if sys.maxsize > 2**32:
cmake_args += ['-A', 'x64']
build_args += ['--', '/m']
else:
build_args += ['--', '-j2']
build_args += ['--', '-j1']

env = os.environ.copy()
env['CXXFLAGS'] = '{} -DVERSION_INFO=\\"{}\\"'.format(
Expand Down
6 changes: 3 additions & 3 deletions src/tetrahedralize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <memory>

#ifdef FLOAT_TETWILD_USE_TBB
#include <tbb/task_scheduler_init.h>
#include <oneapi/tbb.h>
#include <thread>
#endif

Expand Down Expand Up @@ -61,7 +61,7 @@ namespace wildmeshing_binding
num_threads = std::min(max_threads, num_threads);
// params.num_threads = num_threads;
std::cout << "TBB threads " << num_threads << std::endl;
tbb::task_scheduler_init scheduler(num_threads, stack_size);
//tbb::task_scheduler_init scheduler(num_threads, stack_size);
#endif
set_num_threads(num_threads);
}
Expand Down Expand Up @@ -819,4 +819,4 @@ namespace wildmeshing_binding
py::arg("coarsen") = true, py::arg("manifold_surface") = false, py::arg("use_input_for_wn") = false, py::arg("correct_surface_orientation") = false, py::arg("all_mesh") = false, py::arg("binary") = true);
}
#endif
} // namespace wildmeshing_binding
} // namespace wildmeshing_binding
2 changes: 1 addition & 1 deletion wildmeshing/parse_svg
Loading