Skip to content

Commit

Permalink
+ Support of splines
Browse files Browse the repository at this point in the history
+ SVG Autosize
+ Sample image
! Fixed bugs with loops
! Replaced Sphinx Doc with single MD
  • Loading branch information
AndreyZarembo committed Mar 8, 2023
1 parent c09f444 commit 92b3b3d
Show file tree
Hide file tree
Showing 29 changed files with 35,239 additions and 288 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,4 @@ dmypy.json

# Pyre type checker
.pyre/
.idea
23 changes: 13 additions & 10 deletions Readme.rst → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,25 @@ Laser Offset

Simple Tools that creates external and internal offsets for shapes. Supports DXF and SVG Import/Export.

.. note::

This project is in early alpha and was created as side-project for hobby.
It has `Limitations`_

![](imgs/outlines.svg)

Installing
----------

Install and update using `pip`_:

.. code-block:: text
```
$ pip install -U laser_offset
.. _pip: https://pip.pypa.io/en/stable/getting-started/
```

Usage
-----

.. code-block:: text
```
Usage: laser_offset [OPTIONS] SOURCE_PATH TARGET_PATH LASER_WIDTH
Expand All @@ -41,9 +39,14 @@ Usage
-d, --dxf / -D, --no-dxf Output as DXF [default: (True)]
--help Show this message and exit.
```

**Example:**

`laser_offset . ./output -s 150`

Limitations
-----------

1. Not working with splines. Only circles and paths. And can merge lines and arcs into path if they has connected ends
2. Can't handle arcs less that half of laser width
3. Ignores layers, shape size and styles
1. Can't handle arcs less that half of laser width
2. Ignores layers, text, shape size and styles
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

40 changes: 0 additions & 40 deletions docs/source/conf.py

This file was deleted.

8 changes: 0 additions & 8 deletions docs/source/index.rst

This file was deleted.

1 change: 1 addition & 0 deletions imgs/outlines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "laser_offset"
version = "0.1.0"
version = "0.5.0"
authors = [
{ name="Andrey Zarembo-Godzyatskiy", email="[email protected]" },
]
Expand Down
Loading

0 comments on commit 92b3b3d

Please sign in to comment.