OK that actually does not do the trick. The matrix is derived from the parent object so it only works for planar Draft objects.
Draft Hatch
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Draft Hatch
I think I have found a solution for the relocation bug. In this version of hatch.py the first edge and the normal of the face are used to create a matrix. This offers a level of control over how the shape is translated to the XY plane. The first point of the first edge is put on the origin, the first edge will be aligned with the X-axis.
If you create wires with that in mind you can control how the hatch is aligned with the outline. For wires on the XY plane the Translate property can then be used to switch between relative and absolute patterns.
Also included in the ZIP file are two test files and the PAT file I have used.
If you create wires with that in mind you can control how the hatch is aligned with the outline. For wires on the XY plane the Translate property can then be used to switch between relative and absolute patterns.
Also included in the ZIP file are two test files and the PAT file I have used.
- Attachments
-
- hatch.zip
- (51.63 KiB) Downloaded 78 times
-
- insul-zigzag.png (11.45 KiB) Viewed 4839 times
Re: Draft Hatch
Merged.
- ragohix769
- Posts: 565
- Joined: Sat Jul 18, 2020 7:04 am
- Location: Rome - Italy
Re: Draft Hatch
- Attachments
-
- wepz.png (262.64 KiB) Viewed 4441 times
After #ElonMuskBuyTwitter I'm no more on Twitter, that's really enough
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same
=> Now you can find me here on #Mastodon: https://mastodon.uno/@opensoul - I hope more people do the same
Re: Draft Hatch
Merged.