fuzzyometry 0.0.1__tar.gz → 0.0.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fuzzyometry
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: The fuzzyometry library provides smooth objects, object connections and automatic chamfer generation for xyzcad.
5
5
  Author: Stefan Helmert
6
6
  Author-email: stefan@entroserv.de
@@ -0,0 +1 @@
1
+ __version__ = "0.0.2"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "fuzzyometry"
3
- version = "0.0.1"
3
+ version = "0.0.2"
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.1"
File without changes
@@ -6,7 +6,7 @@ def fz_and_chamfer(r, *args):
6
6
  s = 0.0
7
7
  for a in args:
8
8
  s += max(r + a, 0) ** 2
9
- return r - s**0.5
9
+ return s**0.5 - r
10
10
 
11
11
 
12
12
  @njit
@@ -14,4 +14,4 @@ def fz_or_chamfer(r, *args):
14
14
  s = 0.0
15
15
  for a in args:
16
16
  s += max(r - a, 0) ** 2
17
- return s**0.5 - r
17
+ return r - s**0.5