fuzzyometry 0.0.4__tar.gz → 0.0.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fuzzyometry-0.0.4 → fuzzyometry-0.0.5}/PKG-INFO +1 -1
- fuzzyometry-0.0.5/fuzzyometry/_version.py +1 -0
- {fuzzyometry-0.0.4 → fuzzyometry-0.0.5}/fuzzyometry/threads.py +6 -4
- {fuzzyometry-0.0.4 → fuzzyometry-0.0.5}/pyproject.toml +1 -1
- fuzzyometry-0.0.4/fuzzyometry/_version.py +0 -1
- {fuzzyometry-0.0.4 → fuzzyometry-0.0.5}/README.md +0 -0
- {fuzzyometry-0.0.4 → fuzzyometry-0.0.5}/fuzzyometry/__init__.py +0 -0
- {fuzzyometry-0.0.4 → fuzzyometry-0.0.5}/fuzzyometry/bodies.py +0 -0
- {fuzzyometry-0.0.4 → fuzzyometry-0.0.5}/fuzzyometry/combinations.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.5"
|
|
@@ -6,11 +6,13 @@ from numba import njit
|
|
|
6
6
|
def fz_thread_profile(pnt, a=1.0):
|
|
7
7
|
y = pnt[1]
|
|
8
8
|
if abs(y) > 2 * a:
|
|
9
|
-
return y /
|
|
9
|
+
return y / a
|
|
10
10
|
x = pnt[0] * 2 * np.pi
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
sg = np.sign(np.sin(x))
|
|
12
|
+
snglr = 2**-20 - 2**-19 * sg
|
|
13
|
+
p = a / (-np.sin(x) / 2 + snglr)
|
|
14
|
+
q = y / (np.sin(x) + snglr) - 1.0
|
|
15
|
+
return -p - sg * np.sqrt(max(0, p**2 - 4 * q))
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
@njit
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "fuzzyometry"
|
|
3
|
-
version = "0.0.
|
|
3
|
+
version = "0.0.5"
|
|
4
4
|
description = "The fuzzyometry library provides smooth objects, object connections and automatic chamfer generation for xyzcad."
|
|
5
5
|
authors = ["Stefan Helmert <stefan@entroserv.de>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|