diff --git a/README.md b/README.md index f228983..f290485 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ - + build123d is an alternate to the [CadQuery](https://cadquery.readthedocs.io/en/latest/index.html) Fluent API. It has several advantages over this API but the largest one is that build123d diff --git a/docs/build123d_logo.svg b/docs/build123d_logo.svg new file mode 100644 index 0000000..3e64192 --- /dev/null +++ b/docs/build123d_logo.svg @@ -0,0 +1,475 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/index.rst b/docs/index.rst index 31d28b7..b00e145 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -25,7 +25,8 @@ .. highlight:: python -.. image:: logo.png +.. image:: build123d_logo.svg + :align: center build123d is an alternate to the `CadQuery `_ Fluent API. It has several advantages over this API but the largest one is that build123d diff --git a/examples/build123d_logo.py b/examples/build123d_logo.py index 768980e..8f417e2 100644 --- a/examples/build123d_logo.py +++ b/examples/build123d_logo.py @@ -87,6 +87,22 @@ for line in extension_lines.line: logo.add(line) logo.add(build.sketch, name="build") logo.save("logo.step") +cq.exporters.export( + logo.toCompound(), + "logo.svg", + opt={ + # "width": 300, + # "height": 300, + # "marginLeft": 10, + # "marginTop": 10, + "showAxes": False, + # "projectionDir": (0.5, 0.5, 0.5), + "strokeWidth": 0.1, + # "strokeColor": (255, 0, 0), + # "hiddenColor": (0, 0, 255), + "showHidden": False, + }, +) if "show_object" in locals(): show_object(one.line, name="one")