FreeCAD-macros
FreeCAD-macros copied to clipboard
feat: Add Parametric Hatch Generator macro
This pull request adds the Hatch Generator, a new parametric tool for creating complex 2D hatch patterns on Part faces.
Author: @chopinregis Source Repository: https://github.com/chopinregis/FreeCAD-Parametric-Hatch-Generator
Features:
- Creates a fully parametric
Part::FeaturePythonobject for hatches. - Includes a library of over 100 built-in patterns.
- Supports custom objects for patterns, multiple base objects, and subtractions.
- Provides extensive randomization and variation controls.
- Includes a comprehensive GUI for easy creation and previewing.
Dependencies:
- An optional dependency on
scipyis required to use the "Voronoi" and "VoronoiMesh" patterns. The macro functions without it but will print a warning if a user selects those patterns.
This macro is structured as a multi-file addon with a package.xml for integration with the Addon Manager.