You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Whereas in AutoCAD it looks like that:
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
AutoCAD
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
AutoCAD
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 transformation of the block reference was not applied to the pattern filling, this is fixed now, but the fix works only for uniform scaling as expected, because ezdxf does not support non-uniform scaling of patterns. The current implementation takes the scaling factor from the x-axis: scaling factor = length of the transformed x-axis unit-vector.
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 usingezdxf view
you will see the following image:Whereas in AutoCAD it looks like that:
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
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 bothezdxf view
and AutoCAD, and it looks just as the original file view in AutoCAD:ezdxf view
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 theFrontend.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
The text was updated successfully, but these errors were encountered: