BencsikG
5787d64ea7
doc: added link to ggears to external.rst
2024-11-17 15:57:20 +01:00
gumyr
e06337a0e8
Program to refactor topology.py Issue #788
2024-11-16 10:46:56 -05:00
Roger Maitland
e1da165e14
Merge pull request #787 from erooke/path_support
...
Path support
2024-11-15 18:06:36 -05:00
Ethan Rooke
80fc373f0d
fix: export_brep works with BytesIO
2024-11-15 14:50:03 -06:00
Ethan Rooke
056efe6961
test: export_brep works with BytesIO
2024-11-15 14:49:43 -06:00
Ethan Rooke
7b7c2e07b1
test: mesher works with pathlike objects
2024-11-15 14:49:42 -06:00
Ethan Rooke
28b82b85aa
test: importers work with all pathlike arguments
2024-11-15 14:49:42 -06:00
Ethan Rooke
f7f60f1e13
test: 2d exporters work with pathlike options
2024-11-15 14:49:41 -06:00
Ethan Rooke
30d23d8669
test: 3d exporters work with all types of paths
2024-11-15 14:49:41 -06:00
Ethan Rooke
cada1d4239
feat: allow mesher to read/write from pathlike things
2024-11-15 14:49:40 -06:00
Ethan Rooke
69cdabcc72
feat: support Path objects for import / export
...
For all import / export methods make the path a `Union[Pathlike, str, bytes]`
argument to follow python conventions as outlined in pep 519
2024-11-15 14:49:40 -06:00
Roger Maitland
4c43b22bb0
Merge pull request #783 from erooke/housekeeping
...
Housekeeping
2024-11-14 10:39:33 -05:00
Ethan Rooke
af60811d34
fix: remove unreachable code
2024-11-13 21:51:38 -06:00
Ethan Rooke
e8a6ef0608
nit: consistent pattern
...
`not x is None` -> `x is not None` and `not x in set` -> `x not in set`
2024-11-13 21:51:38 -06:00
Ethan Rooke
249f28f025
fix: remove unused imports
2024-11-13 21:51:37 -06:00
Ethan Rooke
d43859b033
fix: remove location() call from default type
...
Having a function call as a default argument causes the function to be called
once (upon declaration) which leads to confusing behavior. Instead we pass in
`None` and call `Location` in the function body. This avoids potential issues
with mutating `location` as well.
2024-11-13 21:51:36 -06:00
Ethan Rooke
8c3f8922a5
fix: avoid date.today() as default arg
...
Having a function call as a default argument causes the function to be called
once (upon declaration) which leads to confusing behavior. Instead we pass in
`None` and call `date.today()` in the function body.
2024-11-13 21:51:36 -06:00
Ethan Rooke
278e481843
fix: explicitly state stacklevel=2 in warnings
...
The default behavior for `warnings.warn` is to only print out the location
where the warning was issued. This is usually not the most helpful behavior as
it does not tell the consumer of build123d what they did to trigger the
warning. By setting stacklevel=2 the call site will be marked with the warning
which is almost surely what is desired.
2024-11-13 21:51:35 -06:00
Ethan Rooke
2773ef4609
fix: remove bare exceptions
...
Replaced all bare exceptions with `except Exception` most exceptions
derive from this[^1], the ones which don't are not intended to be caught.
These are things Like `SystemExit` and `KeyboardInterrupt`
[^1]: https://docs.python.org/3/library/exceptions.html#exception-hierarchy
2024-11-13 21:51:35 -06:00
Roger Maitland
47814adfa6
Merge pull request #779 from jdegenstein/no_py313
...
pyproject.toml -> don't support python 3.13 since cadquery-ocp only supports up to 3.12
2024-11-11 11:15:59 -05:00
jdegenstein
d46b29d7cb
pyproject.toml -> don't support python 3.13 since cadquery-ocp doesn't yet
2024-11-11 09:54:27 -06:00
Roger Maitland
a353d3e776
Merge pull request #771 from Jojain/dev
...
Added thicken and new split tools
2024-11-10 20:43:31 -05:00
Romain FERRU
f13107d0fa
Fix doc
2024-11-10 18:57:16 +01:00
Romain FERRU
63ca9311ce
typo
2024-11-08 22:19:06 +01:00
Romain FERRU
4fad571781
black on test file
2024-11-08 22:18:09 +01:00
Romain FERRU
f2d4524571
re ran black
2024-11-08 22:15:26 +01:00
Romain FERRU
80acfa3e0d
Added thicken and new split tools
2024-11-08 21:25:17 +01:00
Roger Maitland
5633c5fc8c
Merge pull request #764 from dalibor-frivaldsky/756-constructing-plane-from-planar-faces
...
Plane instantiation from planar Geom_BoundedSurface faces Issue #756
2024-11-08 15:19:20 -05:00
Roger Maitland
7ae50261ac
Merge pull request #767 from Jojain/dev
...
Added Shell.loft
2024-11-08 14:49:06 -05:00
Romain FERRU
8fd5a6775e
added > 2 vertices test
2024-11-08 20:29:20 +01:00
gumyr
60029d81d5
Attributes kept after boolean operation Issue#318
2024-11-08 14:18:52 -05:00
Romain FERRU
2a00c1e454
ran black at 88 char per line
2024-11-08 20:18:12 +01:00
Dalibor Frívaldský
a797e59717
Plane instantiation from Face uses the new is_planar property Issue #756
2024-11-08 14:41:45 +01:00
Romain FERRU
e28ffb04c2
refactored loft at direct api level
2024-11-07 20:38:31 +01:00
Dalibor Frívaldský
89c29abd07
Test code simplificatoin for Issue #756
2024-11-07 17:40:51 +01:00
Dalibor Frívaldský
e588107bcb
Extended test coverage for Issue #756
2024-11-07 14:37:47 +01:00
gumyr
f3fa230c52
Enhancing Triangle Issue#765
2024-11-06 20:53:50 -05:00
gumyr
3dbc873c4f
Fix for deeply nested Compounds Issue #607
2024-11-06 20:18:02 -05:00
gumyr
0b4b2b2b54
Improved algebra +,-,& operators Issue #752
2024-11-06 13:50:20 -05:00
gumyr
9fb163cb64
Adding Compound.first_level_shapes to extract objects
2024-11-05 11:53:51 -05:00
Dalibor Frívaldský
e3fdefd4bb
Plane instantiation from planar Geom_BoundedSurface faces Issue #756
2024-11-05 15:15:29 +01:00
gumyr
c7a8529c24
Added Face.is_planar property Issue #756
2024-11-04 14:37:22 -05:00
gumyr
d8d841e5a3
Whitespace fix
2024-11-04 11:19:36 -05:00
Roger Maitland
a415767d73
Merge pull request #755 from Jojain/patch-2
...
Added better explanations of what are the points lists
2024-11-04 11:15:04 -05:00
Jojain
82af5847eb
talk about dimension not lists
2024-11-03 23:02:04 +01:00
Jojain
495a349ae5
Added better explanations of what are the points lists
2024-11-03 22:54:11 +01:00
gumyr
312b50c90e
Improved typing for split_by_perimeter
2024-10-28 14:34:45 -04:00
gumyr
5ed149925e
Updating split_by_perimeter & minor docs fixes
2024-10-28 12:01:13 -04:00
gumyr
120041ac97
Merge branch 'dev' of https://github.com/gumyr/build123d into dev
2024-10-27 11:15:45 -04:00
gumyr
8a91db674a
Adding split_by_perimeter Issue #751
2024-10-27 11:15:36 -04:00