Using a cross-section curve in place on the feature curve

For example,

use this cross-section curve:

to create this feature: