Try increasing facetres = 10 before creating stl file.
There are some portions of your problem description that do not make sense:
- stl files are surface files made from solids, not surfaces
- I am not familiar with how to "create surface, extrude faces...", but then I don't use C3D.
Try the facetres increase and also watch the command line for additional stl Options.