gscrib.hooks
Common hooks for standard operations.
This module provides methods to create hooks for common operations. Currently only a basic extrusion hook is available.
- gscrib.hooks.extrusion_hook(layer_height, nozzle_diameter, filament_diameter)
Creates a hook function to automatically extrude filament.
- Parameters:
- Returns:
A hook function that calculates extrusion amounts
- Return type:
Example
>>> g.add_hook(extrusion_hook( ... layer_height = 0.2, ... nozzle_diameter = 0.4, ... filament_diameter = 1.75 ... ))