b3dkit 0.1.1__tar.gz → 0.1.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.
Files changed (53) hide show
  1. {b3dkit-0.1.1 → b3dkit-0.1.2}/.coverage +0 -0
  2. {b3dkit-0.1.1 → b3dkit-0.1.2}/PKG-INFO +1 -1
  3. {b3dkit-0.1.1 → b3dkit-0.1.2}/pyproject.toml +1 -1
  4. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/bolt_fittings.py +6 -11
  5. {b3dkit-0.1.1 → b3dkit-0.1.2}/.coveragerc +0 -0
  6. {b3dkit-0.1.1 → b3dkit-0.1.2}/.gitignore +0 -0
  7. {b3dkit-0.1.1 → b3dkit-0.1.2}/.vscode/settings.json +0 -0
  8. {b3dkit-0.1.1 → b3dkit-0.1.2}/LICENSE +0 -0
  9. {b3dkit-0.1.1 → b3dkit-0.1.2}/README.md +0 -0
  10. {b3dkit-0.1.1 → b3dkit-0.1.2}/build.bat +0 -0
  11. {b3dkit-0.1.1 → b3dkit-0.1.2}/build.sh +0 -0
  12. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/Makefile +0 -0
  13. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/antichamfer.md +0 -0
  14. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/ball_socket.md +0 -0
  15. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/basic_shapes.md +0 -0
  16. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/bolt_fittings.md +0 -0
  17. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/click_fit.md +0 -0
  18. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/conf.py +0 -0
  19. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/dovetail.md +0 -0
  20. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/dovetail.png +0 -0
  21. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/hexwall.md +0 -0
  22. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/high_top_slide_box.md +0 -0
  23. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/index.md +0 -0
  24. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/point.md +0 -0
  25. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/slide_box.md +0 -0
  26. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/twist_snap.md +0 -0
  27. {b3dkit-0.1.1 → b3dkit-0.1.2}/docs/twist_snap.png +0 -0
  28. {b3dkit-0.1.1 → b3dkit-0.1.2}/mkdocs.yml +0 -0
  29. {b3dkit-0.1.1 → b3dkit-0.1.2}/mkdocs_new.yml +0 -0
  30. {b3dkit-0.1.1 → b3dkit-0.1.2}/readthedocs.yaml +0 -0
  31. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/__init__.py +0 -0
  32. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/antichamfer.py +0 -0
  33. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/ball_socket.py +0 -0
  34. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/basic_shapes.py +0 -0
  35. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/click_fit.py +0 -0
  36. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/dovetail.py +0 -0
  37. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/hexwall.py +0 -0
  38. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/high_top_slide_box.py +0 -0
  39. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/point.py +0 -0
  40. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/slide_box.py +0 -0
  41. {b3dkit-0.1.1 → b3dkit-0.1.2}/src/b3dkit/twist_snap.py +0 -0
  42. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/conftest.py +0 -0
  43. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_antichamfer.py +0 -0
  44. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_ball_socket.py +0 -0
  45. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_basic_shapes.py +0 -0
  46. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_bolt_fittings.py +0 -0
  47. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_click_fit.py +0 -0
  48. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_dovetail.py +0 -0
  49. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_hexwall.py +0 -0
  50. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_high_top_slide_box.py +0 -0
  51. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_point.py +0 -0
  52. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_slide_box.py +0 -0
  53. {b3dkit-0.1.1 → b3dkit-0.1.2}/tests/test_twist_snap.py +0 -0
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: b3dkit
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: build123d libraries and utilities
5
5
  Project-URL: Homepage, https://github.com/x0pherl/b3dkit
6
6
  Project-URL: Issues, https://github.com/x0pherl/b3dkit/issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "b3dkit"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  authors = [
5
5
  { name="x0pherl"},
6
6
  ]
@@ -7,6 +7,7 @@ from build123d import (
7
7
  BuildSketch,
8
8
  Circle,
9
9
  Cylinder,
10
+ GridLocations,
10
11
  Location,
11
12
  Mode,
12
13
  Part,
@@ -80,7 +81,6 @@ class TeardropBoltCutSinkhole(BasePartObject):
80
81
  align=(Align.CENTER, Align.CENTER, Align.MIN),
81
82
  ),
82
83
  if extension_distance > 0:
83
- # extrude(sinkhole.faces().sort_by(Axis.Z)[0], amount=extension_distance)
84
84
  extrude(
85
85
  sinkhole.faces().sort_by(Axis.Z)[-1],
86
86
  amount=extension_distance,
@@ -97,7 +97,7 @@ class TeardropBoltCutSinkhole(BasePartObject):
97
97
  )
98
98
 
99
99
 
100
- class BoltCutSinkhole(BasePartObject):
100
+ class BoltCutSinkhole(TeardropBoltCutSinkhole):
101
101
 
102
102
  def __init__(
103
103
  self,
@@ -132,7 +132,8 @@ class BoltCutSinkhole(BasePartObject):
132
132
  - mode: the mode to use when adding the sinkhole
133
133
  Returns:
134
134
  - Part: A cylindrical bolt hole part with countersink"""
135
- sinkhole = TeardropBoltCutSinkhole(
135
+
136
+ super().__init__(
136
137
  shaft_radius=shaft_radius,
137
138
  shaft_depth=shaft_depth,
138
139
  head_radius=head_radius,
@@ -145,13 +146,6 @@ class BoltCutSinkhole(BasePartObject):
145
146
  mode=mode,
146
147
  )
147
148
 
148
- super().__init__(
149
- part=sinkhole,
150
- rotation=rotation,
151
- align=tuplify(align, 3),
152
- mode=mode,
153
- )
154
-
155
149
 
156
150
  class SquareNutSinkhole(BasePartObject):
157
151
 
@@ -359,5 +353,6 @@ class HeatsinkCut(BasePartObject):
359
353
  if __name__ == "__main__":
360
354
  with BuildPart() as tst:
361
355
  Box(20, 20, 20)
362
- BoltCutSinkhole(mode=Mode.SUBTRACT)
356
+ with GridLocations(10, 10, 2, 2):
357
+ BoltCutSinkhole(mode=Mode.SUBTRACT)
363
358
  show(tst.part, reset_camera=Camera.KEEP)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes