Gets a wall curve trimmed or elongated according to the end conditions of the wall.
Result code of this operation (eOk if successful)