<div dir="ltr">A line may run steeply downslope and then over flat areas.<div><br></div><div>Any generic function to determine so?</div><div><br></div><div>Input:  geometry and relative overall gradient</div><div><br></div><div>Output: the segment running steeply, the segment running in flat area</div><div><br></div><div>Any recommendations and suggestions?</div><div><br></div><div>Regards,</div><div><br></div><div>David</div></div>