Exporting a segment as .stl model

This topic should help: