Skip to content

An issue in the __virtual_entities__ interface that causes some problems in other entities rendering  #783

@IvanKachaikinCendas

Description

@IvanKachaikinCendas

Hi @mozman! First of all, thanks once again for your amazing package that makes my life easier every day 🤩

I think however that I found some issue in the plan that you may find below. What happens specifically: in the file hatches_orig.dxf (available in the archive below) you may find a single block reference with a few hatches inside it. If you view it using ezdxf view you will see the following image:

ezdxf-view-orig

Whereas in AutoCAD it looks like that:

autocad-view-no-ezdxf

After that, if you explode the block reference using ezdxf (the plan that I get: hatches_exploded_ezdxf.dxf is also available in the archive attached), you will get the following images:

  • ezdxf view
    ezdxf-view-orig
  • AutoCAD
    autocad-view-ezdxf

So it starts looking the same, moreover the most interesting thing: if you explode the block reference in AutoCAD (the file that I get: hatches_exploded_autocad.dxf is also available in the archive attached), it also looks the same in both ezdxf view and AutoCAD, and it looks just as the original file view in AutoCAD:

  • ezdxf view
    ezdxf-view-autocad-exploded
  • AutoCAD
    autocad-view-no-ezdxf

As ezdxf is completely able to render the hatch pattern in the provided DXFs, I suppose that this issue happens somewhere inside the __virtual_entities__ protocol that is called on both block reference explosion and on the Frontend.draw_entities.

Please let me know what do you think about this issue, do not hesitate to ask for any additional info and thanks for taking it into account.

The archive with files:
hatches_github_issue.zip

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