Note: There is an option in InkScape under the Path header called Fracture that should do what the scripts I describe below should do. The Fracture option didn't exist when I first started so that I was why I created my scripts. I've tried Fracture on simple groups of paths and it worked well. The one time I tried it on one of my sewing pattern sections, it did not do as well as my scripts.
After saving the file with your lines, you will then run two scripts that I've written. These are Visual Basic Scripts and will only run on Windows operating systems. The first script is called "CheckAndListIntersectionMultiFormatFlexAndTransform.vbs" and the second is called "CreatePolygonsNewEndPtTreatment.vbs". They can be downloaded from the scripts page. The purpose of these two scripts are to break lines into individual segments and then create polygons. These polygons can then be filled with colors or patterns when the new file created by the script is opened in Inkscape.
You will have to enter the path and name of you file in the script by editing in a text editor like NotePad or WordPad. In the first script you will enter the name of the file you created and saved with Inkscape that has your image and lines. This first script will create a new file with the word "Lines" appended to the filename. Enter this appended filename into the second script. The second script will append "Poly" to the "Lines" filename. The second script has the option of filling the polygons with a single color. I use this to see how many "holes" are in my pattern because the script didn't connect some lines that should have been connected to create a polygon. I can go back and adjust lines if I want. Otherwise, you will just add those polygons in the next step.
If you encounter any errors you can contact me at NHZagar1@gmail.com and I will be happy to assist.
You will now want to fill in the polygons that have been created. I create a palette of colors to do that. Inkscape uses the open source program GIMP format for its palettes. I just use NotePad, a windows text editor to create the palette file. The file extension is gpl. On my computer the file is then placed in C:\Program Files\Inkscape\share\inkscape\palettes. I've put examples in the MeerKats and BearReading pages. The first four lines of the file are:
GIMP Palette
Name: Whatever name you use for the file
#
followed by the RGB (red, green, blue) values in decimal form, then a # and then in hexadecimal form and any comment
Open the file with the "Lines" and "Poly" that was created by the second script. To see your palette, go to View and then select Swatches. From there will be a drop down that you can select your palette from.
You will click on each polygon and then click on the swatch color square to fill the polygon. You do this for each polygon. A