Hatching in SVG Export
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Hatching in SVG Export
After git commit a9b718d1e0 Svg Face hatches should be present in exported Svg drawings. The Svg hatches are converted to bitmaps and clipped to fit the Face before export.
- Attachments
-
- ExportedHatchInInkscape.png (220.37 KiB) Viewed 1712 times
Re: Hatching in SVG Export
Cool new feature!
I gave it a try and I have 2 ideas of what might in future be implemented as well:
Here is a screenshot:
1. users might want to rotate the Standard Hatch because for some reasons the stripes must go from the upper left to the lower right.
2. the geometric hatch is currently not exported in the PDF.
I gave it a try and I have 2 ideas of what might in future be implemented as well:
Here is a screenshot:
1. users might want to rotate the Standard Hatch because for some reasons the stripes must go from the upper left to the lower right.
2. the geometric hatch is currently not exported in the PDF.
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Hatching in SVG Export
For now, the user can pick a different pattern (ex hatch45R.svg and hatch45L.svg) or make one of their own. We will probably need something like this eventually to distinguish adjacent faces in SectionView.
I probably broke something. I'll have a look.2. the geometric hatch is currently not exported in the PDF.
Re: Hatching in SVG Export
Ah, up to now I did not know this exists. I get as default hatch "simple.svg" thus there was no hint.wandererfan wrote: ↑Mon Jun 08, 2020 2:55 pm For now, the user can pick a different pattern (ex hatch45R.svg and hatch45L.svg) or make one of their own.
I think having a task dialog to set the hatch would help here. I mean geometric hatch has one while standard hatch has not. Should I come up with such a dialog or do you already work on this?
Thanks.I probably broke something. I'll have a look.2. the geometric hatch is currently not exported in the PDF.
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Hatching in SVG Export
Go ahead. It will take me a long time to get to this.
Do you know if this ever worked in v0.19? It doesn't seem to work in v0.18.4.2. the geometric hatch is currently not exported in the PDF.
Re: Hatching in SVG Export
OK.
I am not sure but since in the Wiki page:2. the geometric hatch is currently not exported in the PDF.Do you know if this ever worked in v0.19? It doesn't seem to work in v0.18.4.
TechDraw_GeometricHatch
there is no note about this, it maybe it once worked for 0.19.
- wandererfan
- Veteran
- Posts: 6268
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Hatching in SVG Export
should be fixed by git commit cda235aba0.
Re: Hatching in SVG Export
many thanks! Confirmed fixed.