Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding 'INSERT' entity. Believe it does not break anything but would welcome feedback. #27

Open
mconsidine opened this issue Dec 20, 2023 · 0 comments

Comments

@mconsidine
Copy link
Contributor

Test to implement "INSERT" entity.

Following on to an interest in read the DXF found here:

I have tried to implement the "INSERT" entity used in those DXFs.

After download the ZIP file at that location, there will be 3 DXFs. As a test, they can be read in the Python console in FC this way
`
import OpenSCADdxf
import ezdxf
from ezdxf import query, disassemble, path

test1,test2 = importEZDXFshape(u"/home/matt/Downloads/DXF_tests/CandyBowl 13cm 18x.dxf", retfaces=True)
Part.show(test1)

#for some reason this following one doesn't completely get read; havent looked into
test3,test4 = importEZDXFshape(u"/home/matt/Downloads/DXF_tests/CandyBowl 20cm 12x.dxf", retfaces=True)
Part.show(test3)

test5,test6 = importEZDXFshape(u"/home/matt/Downloads/DXF_tests/CandyBowl 25cm 36x.dxf", retfaces=True)
Part.show(test5)
`
A compound is returned by default; here faces are also returned in the event they are easier to use. Note that the orientation of the lines with respect to each other is not the same as in the actual bowls.

One could probably go at this using 'potrace' and reading a one of the JPEGs for the other bowls, but I have not tried that yet. A proof of concept set of steps though can be found in the FC forum by searching for the word 'potrace'.

HTH,
mconsidine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant