Skip to content

Commit b723d24

Browse files
committed
[bug] fix windows binary tool suffix bug, bump to 0.2.1
1 parent ab04103 commit b723d24

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
* Copyright: (C) Qianqian Fang (2024-2025) <q.fang at neu.edu>, Edward Xu (2024) <xu.ed at northeastern.edu>
66
* License: GNU Public License V3 or later
7-
* Version: 0.2.0
7+
* Version: 0.2.1
88
* URL: [https://pypi.org/project/iso2mesh/](https://pypi.org/project/iso2mesh/)
99
* Github: [https://github.com/NeuroJSON/pyiso2mesh](https://github.com/NeuroJSON/pyiso2mesh)
1010

@@ -28,8 +28,15 @@ similar to those in the MATLAB/Octave versions of Iso2Mesh.
2828

2929
## How to Install
3030

31-
* PIP: `python3 -m pip install iso2mesh`, see [https://pypi.org/project/iso2mesh/](https://pypi.org/project/iso2mesh/)
32-
* PIP+Git: `python3 -m pip install git+https://github.com/NeuroJSON/pyiso2mesh.git`
31+
* PIP: `python3 -m pip install iso2mesh`
32+
* PIP+Git (latest version): `python3 -m pip install git+https://github.com/NeuroJSON/pyiso2mesh.git`
33+
34+
MacOS users: you need to run the following commands to install this module
35+
```bash
36+
python3 -m venv /tmp/pyiso2mesh-venv
37+
source /tmp/pyiso2mesh-venv/bin/activate
38+
python3 -m pip install iso2mesh
39+
```
3340

3441
## Runtime Dependencies
3542

@@ -48,8 +55,8 @@ downloads these external tools and store those under the user's home directory
4855

4956
### Build Dependencies
5057

51-
* **Operating System**: `pyiso2mesh` can be built on most operating systems, including Windows, Linux, and macOS.
52-
The module is written in pure Python and is portable across platforms.
58+
* **Operating System**: The module is written in pure Python and is portable across platforms,
59+
including Windows, Linux, and macOS.
5360

5461
### Build Steps
5562

iso2mesh/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
barycentricgrid,
138138
)
139139

140-
__version__ = "0.2.0"
140+
__version__ = "0.2.1"
141141
__all__ = [
142142
"advancefront",
143143
"barycentricgrid",

iso2mesh/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ def cgalv2m(vol, opt, maxvol):
804804

805805
randseed = int("623F9A9E", 16)
806806

807-
cmd = f'"{mcpath("cgalmesh")}{exesuff}" "{mwpath("pre_cgalmesh.inr")}" "{mwpath("post_cgalmesh.mesh")}" {ang} {ssize} {approx} {reratio} {maxvol} {randseed}'
807+
cmd = f'"{mcpath("cgalmesh", exesuff)}" "{mwpath("pre_cgalmesh.inr")}" "{mwpath("post_cgalmesh.mesh")}" {ang} {ssize} {approx} {reratio} {maxvol} {randseed}'
808808

809809
os.system(cmd)
810810

@@ -893,7 +893,7 @@ def cgals2m(v, f, opt, maxvol, *args):
893893
randseed = os.getenv("ISO2MESH_SESSION", int("623F9A9E", 16))
894894

895895
cmd = (
896-
f'"{mcpath("cgalpoly")}{exesuff}" "{mwpath("pre_cgalpoly.off")}" "{mwpath("post_cgalpoly.mesh")}" '
896+
f'"{mcpath("cgalpoly", exesuff)}" "{mwpath("pre_cgalpoly.off")}" "{mwpath("post_cgalpoly.mesh")}" '
897897
f"{ang:.16f} {ssize:.16f} {approx:.16f} {reratio:.16f} {maxvol:.16f} {randseed}"
898898
)
899899

@@ -930,7 +930,7 @@ def getintersecttri(tmppath):
930930
"""
931931
exesuff = getexeext()
932932
exesuff = fallbackexeext(exesuff, "tetgen")
933-
tetgen_path = mcpath("tetgen") + exesuff
933+
tetgen_path = mcpath("tetgen", exesuff)
934934

935935
command = f'"{tetgen_path}" -d "{os.path.join(tmppath, "post_vmesh.poly")}"'
936936
status, str_output = subprocess.getstatusoutput(command)
@@ -993,7 +993,7 @@ def vol2restrictedtri(vol, thres, cent, brad, ang, radbound, distbound, maxnode)
993993

994994
# Build the system command to run CGAL mesher
995995
cmd = (
996-
f'"{mcpath("cgalsurf",exesuff)}" "{mwpath("pre_extract.inr")}" '
996+
f'"{mcpath("cgalsurf", exesuff)}" "{mwpath("pre_extract.inr")}" '
997997
f"{thres:.16f} {cent[0]:.16f} {cent[1]:.16f} {cent[2]:.16f} {brad:.16f} {ang:.16f} {radbound:.16f} "
998998
f'{distbound:.16f} {maxnode} "{mwpath("post_extract.off")}" {randseed} {initnum}'
999999
)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
setup(
77
name="iso2mesh",
88
packages=["iso2mesh"],
9-
version="0.2.0",
9+
version="0.2.1",
1010
license='GPLv3+',
1111
description="Image-based 3D Surface and Volumetric Mesh Generator",
1212
long_description=readme,
@@ -28,7 +28,7 @@
2828
"Decoder",
2929
],
3030
platforms="any",
31-
install_requires=["numpy>=1.8.0"],
31+
install_requires=["numpy>=1.8.0", "matplotlib"],
3232
classifiers=[
3333
"Development Status :: 4 - Beta",
3434
"Intended Audience :: Developers",

0 commit comments

Comments
 (0)