Commit graph

1720 commits

Author SHA1 Message Date
jdegenstein
8064bf7342
handle.py -> use location_at (^) instead of manual Plane construction with position/tangent 2024-10-22 15:27:38 -05:00
jdegenstein
c82c0f4a2c
introductory_examples.rst -> fix code escape for show_all 2024-10-16 08:52:04 -05:00
jdegenstein
dd84840e8d
tea_cup_algebra.py -> find_intersection to find_intersection_points 2024-10-15 12:59:23 -05:00
jdegenstein
344c5afa56
tea_cup.py -> find_intersection to find_intersection_points 2024-10-15 12:58:51 -05:00
jdegenstein
93ad244271
Merge pull request #732 from erooke/test-version
test: check that exporter.library is >= 2.3.1 not == 2.3.1
2024-10-15 12:49:51 -05:00
jdegenstein
e2434d7777
Merge pull request #704 from jdegenstein/numpy2
Upgrade build123d to numpy >=2, <3
2024-10-10 15:53:15 -05:00
jdegenstein
6452e1bfd6
Merge pull request #733 from jdegenstein/BBox_optimal
Remove mesh from `bounding_box` and implement `optimal=False` in a few more places
2024-10-10 15:51:45 -05:00
jdegenstein
dacb347f5a
topology.py -> revert a few uses of optimal=False 2024-10-10 15:42:39 -05:00
jdegenstein
351e0f3e16
build_common.py reverse optimal=False 2024-10-10 15:36:52 -05:00
jdegenstein
d7da7e9837
geometry.py -> remove mesh step from optimal=False, oriented=True 2024-10-10 15:17:40 -05:00
jdegenstein
58e82b8963
operations_generic.py -> bounding_box(optimal=False).diagonal 2024-10-10 15:01:37 -05:00
jdegenstein
be4cd518b0
build_common.py -> bounding_box(optimal=False).diagonal 2024-10-10 15:00:52 -05:00
jdegenstein
054d7a0a7f
topology.py -> bounding_box(optimal=False).diagonal 2024-10-10 14:59:39 -05:00
jdegenstein
929dd95cc3
operations_part.py -> bounding_box(optimal=False).diagonal 2024-10-10 14:52:27 -05:00
jdegenstein
bb810ea665
geometry.py -> only triangulate if optimal=False and oriented=True
should improve performance of optimal=False, oriented=False
2024-10-10 14:45:24 -05:00
Ethan Rooke
b31c9e9634
test: check that exporter.library is >= 2.3.1 not == 2.3.1 2024-10-08 22:42:37 -05:00
gumyr
8e798f2b57 Relaxing is_parallel check of DoubleTangentArc to avoid false negatives Issue #728 2024-10-07 10:45:33 -04:00
gumyr
b81fecd8dc Added tuple as valid input to Color Issue #727 2024-10-07 10:13:32 -04:00
gumyr
cf1f869d7d Added tuple as valid input to Color Issue #727 2024-10-07 10:12:56 -04:00
gumyr
371803da3e Fixed Issue #664 2024-10-06 10:04:22 -04:00
gumyr
9dd8a27763 Adding pdf & epub to the docs 2024-10-06 09:47:11 -04:00
gumyr
b07604e056 Attempting to get readthedocs to generate epub & pdf outputs 2024-10-04 16:49:09 -04:00
gumyr
f1a9c58900 Fixed split with nested Compounds Issue #698 2024-10-04 11:40:25 -04:00
gumyr
2864f0556a Merge branch 'dev' of https://github.com/gumyr/build123d into dev 2024-10-04 10:15:44 -04:00
gumyr
d3228ede98 Fixed invalid length of arcs Issue #717 2024-10-04 10:15:34 -04:00
jdegenstein
5f2d5bcb6d
Merge pull request #724 from jdegenstein/fixlint
Fix lint.yml and upgrade actions versions
2024-10-02 15:26:16 -05:00
jdegenstein
6007fe3502
Update coverage.yml -> newer actions versions 2024-10-02 15:11:04 -05:00
jdegenstein
264c4e1198
lint.yml -> matrix python version 2024-10-02 15:05:30 -05:00
gumyr
04cf1efd89 Fixed param_at_point Issues #570 & #708 2024-10-02 15:44:10 -04:00
Roger Maitland
55f6e8f073
Merge pull request #713 from slobberingant/dev
New section "Iterating Over Compounds" to Assembly documentation.
2024-09-26 10:45:04 -04:00
Anthony
f1244a574c Fixed project name and included generator expression rather than list comprehension. 2024-09-26 13:53:38 +10:00
gumyr
e901b63cfe Merge branch 'dev' of https://github.com/gumyr/build123d into dev 2024-09-25 10:20:46 -04:00
gumyr
14805a5343 Added Axis position & direction to docs 2024-09-25 10:20:37 -04:00
jdegenstein
ab192ee16a
Merge pull request #715 from jdegenstein/rem_makecomp
Remove use of deprecated `Compound.make_compound()` in `tutorial_joints.py` and fix intro ex. 23 for algebra mode
2024-09-24 20:36:18 -05:00
jdegenstein
ba2e687a07
general_examples_algebra.py -> fix ex23 typo 2024-09-24 20:28:06 -05:00
Anthony Sokolowski
933558fcfc Added new section Iterating Over Compounds to Assembly documentation. 2024-09-25 10:17:33 +10:00
jdegenstein
d424e97562
tutorial_joints.py -> use Compound() constructor instead of ..make_compound 2024-09-24 16:09:34 -05:00
Roger Maitland
720bee9fa0
Merge pull request #707 from alexer/fix-eq
Fix __eq__ and __ne__ for classes implementing them
2024-09-22 10:10:13 -04:00
Aleksi Torhamo
acbebfb017 Fix __eq__ and __ne__ for classes implementing them
Main issue, which concerns Vector, Location, and ShapeList:

Comparison with an object of a different type should not cause an
exception - they are simply not equal. Raising an exception in __eq__
can (and will*) break unrelated code that expects __eq__ to be well-behaved.

(* I noticed this bug when cq-editor choked on it while trying to find
   a name for an object in a dictionary of local variables)

There's a second more minor issue, which concerns the rest of the classes:

When the other type in __eq__ is not supported, one should technically
return NotImplemented instead of False, to allow the other type to take
part in the comparison, in case they know about our type.

(__ne__ should also not generally be implemented as just the negation of
__eq__ because of this, but that's also a moot point because the __ne__
can just be removed - Python will automatically do the right thing based
on __eq__ here)

Technically, the __eq__ for Vector and Plane is also broken in another way:
It's not transitive.

>>> a, b, c = Vector(0), Vector(9e-6), Vector(18e-6)
>>> a == b == c
True
>>> a == c
False

They should really eg. have a separate is_close() for approximate comparison,
but this isn't fixed here, since I have no idea how many places it'd break,
for one.
2024-09-22 08:07:00 +03:00
Roger Maitland
ca0597d8ec
Merge pull request #706 from openvmp/partcad-examples-update
Updated partcad.yaml to make the examples work in the latest PartCAD
2024-09-21 09:13:55 -04:00
Roman Kuzmenko
c47a550aa5 Updated partcad.yaml to make the examples work in the latest PartCAD 2024-09-20 22:19:34 -07:00
gumyr
043629ec87 Enhanced offset to allow holes to grow outside of the Face Issue #702 2024-09-20 11:29:19 -04:00
jdegenstein
24b8d03bd9
installation.rst -> update macos workaround 2024-09-19 15:44:11 -05:00
jdegenstein
cffe4dc356
pyproject.toml -> "numpy >= 2, <3", 2024-09-19 15:34:55 -05:00
jdegenstein
2d47621a0f
importers.py -> fix bug relating to casting np.float64 to float in import_svg_as_buildline_code 2024-09-19 15:30:13 -05:00
Roger Maitland
debdf845bf
Merge pull request #695 from danieledapo/dev
Fix thicken normal calculation when no override is provided
2024-09-19 14:33:21 -04:00
jdegenstein
025d0727a3
test_exporters3d.py -> fix deprecation warning on regex 2024-09-19 13:23:59 -05:00
gumyr
99b378f27a Added Compound.unwrap & Compound.len as part of fix of Issue#694 2024-09-19 14:13:50 -04:00
jdegenstein
a5a290d52b
Update pyproject.toml 2024-09-19 12:24:31 -05:00
Daniele D'Orazio
82f3dd8011 fix normal_override overwrite in thicken 2024-09-19 09:23:01 +02:00