Using a cross-section curve in the XY plane
For example,
use this cross-section curve:
to create this feature: