WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
947b974
run different python versions
MariusCausemann Dec 18, 2024
41af1c3
update parse_svg
MariusCausemann Dec 18, 2024
b29e17d
pip install rather than setup.py
MariusCausemann Dec 19, 2024
63ca2b4
migrate to oneapi tbb
MariusCausemann Dec 21, 2024
ab6b948
remove tbb scheduler
MariusCausemann Dec 21, 2024
b643c27
move to my branch
MariusCausemann Dec 21, 2024
cd6937d
retrigger run
MariusCausemann Jan 3, 2025
fa5e521
fix debug?
MariusCausemann Jan 3, 2025
e4896c3
use config-setting
MariusCausemann Jan 3, 2025
330ac01
debug from sys.argv
MariusCausemann Jan 3, 2025
d70873d
pass debug
MariusCausemann Jan 3, 2025
9a74c06
remove platform spefication for windows
MariusCausemann Jan 3, 2025
4805056
set c++11
MariusCausemann Jan 4, 2025
abce251
set c++14?
MariusCausemann Jan 4, 2025
bafe2e0
Update CMakeLists.txt
MariusCausemann Jan 4, 2025
0858392
undo c++11
MariusCausemann Jan 4, 2025
ea4a378
bump fTetWild
MariusCausemann Jan 4, 2025
34f3cf7
bump fTetWild for c++17
MariusCausemann Jan 6, 2025
f44b434
allow cmake args and disable tbb tests
MariusCausemann Jan 7, 2025
220c7dd
try again disabling TBB tests
MariusCausemann Jan 7, 2025
9284a34
TBB_TEST typo
MariusCausemann Jan 7, 2025
2a30e1a
disable parallel build
MariusCausemann Jan 8, 2025
e605970
bump windows to 2022
MariusCausemann Jan 13, 2025
ca937be
return to win 2019
MariusCausemann Jan 13, 2025
63952bf
add macOS-arm64
MariusCausemann Jan 17, 2025
fd9bc28
fix os name
MariusCausemann Jan 17, 2025
1ff38fb
update fTetWild (igl windingnumber for arm64 compatibility)
MariusCausemann Jan 17, 2025
e6e5018
try libigl bump again
MariusCausemann Jan 17, 2025
d5d2ef7
and again
MariusCausemann Jan 17, 2025
473a0f9
change triwild / tetwild order
MariusCausemann Jan 17, 2025
f06d2d4
switch to trilwild fork with new igl
MariusCausemann Jan 17, 2025
5ea0cdf
bumpf FTetwild
MariusCausemann Jan 17, 2025
48a11a7
remove eigen namespace
MariusCausemann Jan 17, 2025
068f250
include eigen/dense
MariusCausemann Jan 17, 2025
0f93676
and again...
MariusCausemann Jan 17, 2025
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
16 changes: 10 additions & 6 deletions .github/workflows/continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,19 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macOS-13, windows-2019]
os: [ubuntu-22.04, macOS-13, macOS-14, windows-2019]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
config: [Debug, Release]
include:
- os: ubuntu-22.04
name: Linux
- os: windows-2019
name: Windows
- os: macos-13
name: macOS
name: macOS-13
- os: macos-14
name: macOS-14 ARM64

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -47,7 +51,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 +71,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
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# Setup dependencies
include(WildMeshingDependencies)

# triwild
wildmeshing_download_triwild()
add_subdirectory(${THIRD_PARTY_DIR}/triwild)


# tetwild
wildmeshing_download_tetwild()
add_subdirectory(${THIRD_PARTY_DIR}/tetwild)


# triwild
wildmeshing_download_triwild()
add_subdirectory(${THIRD_PARTY_DIR}/triwild)


# pybind11
wildmeshing_download_pybind11()
add_subdirectory(${THIRD_PARTY_DIR}/pybind11)
Expand Down
8 changes: 4 additions & 4 deletions cmake/WildMeshingDownloadExternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ endfunction()

function(wildmeshing_download_triwild)
wildmeshing_download_project(triwild
GIT_REPOSITORY https://github.com/wildmeshing/TriWild
GIT_TAG ac7977c1da9fb25de8c0f7c666055e6d09034686
GIT_REPOSITORY https://github.com/MariusCausemann/TriWild
GIT_TAG ec752debe750628ad8147df99e11c766e0794efc
)
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 7f2e76be786cb62540ede53764a14355b5412d79
)
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
8 changes: 4 additions & 4 deletions src/tetrahedralize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <floattetwild/TriangleInsertion.h>
#include <floattetwild/CSGTreeParser.hpp>
#include <floattetwild/MshLoader.h>
#include <Eigen/Dense>

#include <floattetwild/Logger.hpp>

Expand All @@ -19,12 +20,11 @@
#include <memory>

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

using namespace floatTetWild;
using namespace Eigen;

namespace wildmeshing_binding
{
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