mirror of
https://github.com/gumyr/build123d.git
synced 2026-01-05 08:43:12 -08:00
Changed Unit Enum to abbreviations
This commit is contained in:
parent
c288ae2856
commit
2831078a28
6 changed files with 78 additions and 84 deletions
|
|
@ -35,7 +35,7 @@ with BuildPart() as example:
|
|||
Circle(radius=4, mode=Mode.SUBTRACT)
|
||||
extrude(amount=-2, mode=Mode.SUBTRACT)
|
||||
visible, hidden = example.part.project_to_viewport((-100, 100, 100))
|
||||
exporter = ExportSVG(unit=Unit.MILLIMETER, scale=6)
|
||||
exporter = ExportSVG(scale=6)
|
||||
exporter.add_layer("Visible")
|
||||
exporter.add_layer("Hidden", line_color=(99, 99, 99), line_type=LineType.ISO_DOT)
|
||||
exporter.add_shape(visible, layer="Visible")
|
||||
|
|
@ -51,7 +51,7 @@ with BuildPart() as example:
|
|||
)
|
||||
|
||||
visible, hidden = example.part.project_to_viewport((-100, 100, 100))
|
||||
exporter = ExportSVG(unit=Unit.MILLIMETER, scale=6)
|
||||
exporter = ExportSVG(scale=6)
|
||||
exporter.add_layer("Visible")
|
||||
exporter.add_layer("Hidden", line_color=(99, 99, 99), line_type=LineType.ISO_DOT)
|
||||
exporter.add_shape(visible, layer="Visible")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue