Commit Graph

15 Commits

Author SHA1 Message Date
AU
2629bf9490 Text fixes and some shape/free func additions (#1700)
* Fix regression [single letters]

* Text, offset, solid and exportBin changes

- text on path
- text on path/surface
- symmetric offset
- import/export binary brep

* Binary BREP in exporters/importers

* Extra tests

* Fix tests

* Add bin imp/exp test

* Blacken

* Remove one overload

* Fix dispatch

* Fix test

* Extra vis options

* Different error

* Fix/more tests

* Better coverage

* More tests

* Docs text placeholder

* Pseudo-infinite plane

* Add an example for text

* Black fix

* Apply suggestions from code review

Co-authored-by: Jeremy Wright <wrightjmf@gmail.com>

* Typo fixes

---------

Co-authored-by: Jeremy Wright <wrightjmf@gmail.com>
2024-11-24 13:09:19 +01:00
c1813f3545 Add Brep to supported importShape functions (#1467)
* Add Brep to supported importShape functions

- Add a test for the BREP importer
- Use os.path.join to ensure that the filepath is OS independent

* Make BREP consistent with STEP and test Compounds

Adding a case to test `type == "Compound"` revealed that that case was
inconsistent with the STEP importer, so that case was removed. The
compound test was obviously revealing, so it is retained for both STEP
and BREP.

* Add a test to verify that a RuntimeError is raised (should probably be a ValueError)
2024-01-18 14:17:38 -05:00
f3b0b09fe8 allow specification of dxf layer names to import. for issue #1051 (#1061)
* allow specification of dxf layer names to import. for issue #1051

* black, version 19.10b0 reformat

* change dxf import/export defaults from None to []

* Change type annotations

* Black fix

* Add tests, update error message, use set.

Co-authored-by: AU <adam-urbanczyk@users.noreply.github.com>
Co-authored-by: Lorenz Neureuter <hello@lorenz.space>
2022-07-17 12:58:30 +02:00
9097fe0ab3 Face.makeFromWires - check that wires are closed 2022-01-02 20:08:42 -05:00
2d721d0ff8 add the choice to not import all dxf layers (#442)
* add the choice to not import all dxf layers

this is especially useful for ignoring layers in drawings containing note text or dimensions

* remove a blank line

* Rework layer exclusion in dxf import

* add dxf for layer tests

* add tests for dxf import layer filtering and extrusion

fix edges/wires mixup

remove extra `)`

fix var name typo

fix lint

Co-authored-by: Adam Urbańczyk <adam-urbanczyk@users.noreply.github.com>
2020-08-31 09:26:26 +02:00
6d6da05d0d More dxf spline tests 2020-07-17 16:59:21 +02:00
633eb7b92b Test for spline+ellipse import 2020-07-16 20:04:05 +02:00
4cfbec248e Typos and such 2020-06-02 18:24:36 +02:00
2b9440614a Reformat using black 2020-06-02 17:53:30 +02:00
8da30ff2b1 Additional DXF related tests 2020-06-02 17:52:25 +02:00
4dacf41629 Blackify 2020-06-01 16:21:20 +02:00
bce468d72d More checks related to dxf import 2020-06-01 16:19:02 +02:00
60cbfb50bd Added DXF tests 2020-06-01 14:13:52 +02:00
102c16c14e Add Black formatting check to CI (#255)
* Add Black formatting check to CI
* Add some documentation for code contributors
* Use uncompromised code formatting
2020-01-20 20:52:12 +01:00
5069483aef Use pytest to run the test suite 2019-12-12 20:58:47 +01:00