Draft_Hatch vs. TechDraw_GeometricHatch: different results?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Draft_Hatch vs. TechDraw_GeometricHatch: different results?
I was looking at hatch patterns in FreeCAD yesterday and I noticed that the Draft_Hatch and TechDraw_GeometricHatch commands produce different results for the same pattern (with the same settings). The Draft_Hatch is at the top of the image. It ignores the gaps in the pattern, but seems to handle hatch scales other than 1 better than the TechDraw hatch. Since Draft_Hatch uses TechDraw code I am surprised by this. Are there two hatch algorithms in the TechDraw code?
- Attachments
-
- HatchTest.zip
- (23.4 KiB) Downloaded 23 times
-
- draft-hatch-vs-techdraw-hatch.png (20.51 KiB) Viewed 1710 times
Re: Draft_Hatch vs. TechDraw_GeometricHatch: different results?
I actually was never able to achieve the TechDraw result in Draft yet... The code used by Draft is https://github.com/FreeCAD/FreeCAD/blob ... y.cpp#L889 which calls this one, where - I thought - all the magic is done: https://github.com/FreeCAD/FreeCAD/blob ... h.cpp#L272
But apparently it's still missing something...
But apparently it's still missing something...