Description
The fundamental technique used to simulate hair with FDM printers involves pushing out small pieces of plastic material and promptly and swiftly repositioning the extruder. This results in a "string" outcome, effectively "sketching" hair that stretches in the direction of motion.
Reference: 3D Printed Hair
Design
First, we can find a desired 3D model from the Thingiverse, which will include 3D-printed hair. And then, slice the 3D model using Ultimaker and save it as Gcode.
You can upload the G-Code using G-Code analyzer to see 2D and 3D version of your 3D Model.
Using the 2D view, locate the position where you want to add hairs.
By modifying G-code, you can generate the hair like below. The green lines are the hair generated with the G-code modification.
Result
After we print it with a 3D printer, we have the figure with hair on its head.