Postby Xav » Thu Jun 22, 2017 12:18 am
(Beaten by Polygon, but I'll post anyway as my instructions are a bit more step-by-step)
If by "gear tool" you mean the extension in Extensions > Render > Gear > Gear, then that creates a group of one or two objects (depending on whether or not the diameter of the centre hole is zero). For the fill to work the way you want, you need to have a single path rather than multiple objects. Here's the approach I'd take:
1) Create the gear.
2) Draw your other circles on it.
3) Select the gear and your other circles, then select Path > Combine (Ctrl-K) to turn them all into a single path. Check the status bar to confirm that's what you've got.
4) With the shape selected, click on one of the swatches at the bottom of the screen to give it a fill colour.
5) With luck that will have done the job. If your holes are still getting filled you probably need to change the "Fill Rule". With the shape selected still, open the Fill & Stroke dialog (Object > Fill & Stroke), then in the "Fill" tab select the penultimate button along the top. The tooltip should mention "fill-rule: evenodd".