In which it would be ScrewThread(3, 12) to make the thread.
dmitry_ has quit [Quit: dmitry_]
MetricBolt(3, 12) will generate a standardized bolt with a head.
But I will also issue a general caveat... M3 screws are not really very printable on a standard 0.4mm extruder nozzle FDM printer setup. You'll need something a little higher quality to get something reasonable. And even then it will be a very flimsy screw unless you're talking about a metal printer.
M4 is basically your minimum for a usable screw/bolt on a normal plastic FDM.
Although you can get away with M3 threaded holes just fine, if you plan on metal M3 bolts.
dmitry_ has joined #openscad
dmitry_ has quit [Ping timeout: 265 seconds]
Just because you want to model it, doesn't mean you want to print it! I don't know about you but in my models I want as much of the assembly to be shown as practicable