Skip to content

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

@mconsidine

Description

@mconsidine

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions