Polyline UpdateMsByMs( Polyline polyline, int fromPartIndex, int fromPointIndex, int toPartIndex, int toPointIndex, double fromM, double toM, UpdateMMethod updateMMethod )
Function UpdateMsByMs( _ ByVal polyline As Polyline, _ ByVal fromPartIndex As Integer, _ ByVal fromPointIndex As Integer, _ ByVal toPartIndex As Integer, _ ByVal toPointIndex As Integer, _ ByVal fromM As Double, _ ByVal toM As Double, _ ByVal updateMMethod As UpdateMMethod _ ) As Polyline
Parameters
- polyline
- The input polyline.
- fromPartIndex
- The index of the part from which to start.
- fromPointIndex
- The index of the point (relative to the part) from which to start.
- toPartIndex
- The index of the part from which to end.
- toPointIndex
- The index of the point (relative to the part) from which to end.
- fromM
- The start M-value.
- toM
- The end M-value.
- updateMMethod
- The method to use when updating M-values. You can use a combination of update methods by using the bitwise OR operator. For example, to interpolate between the input points and to extrapolate before the input points, useUpdateMMethod.Interpolate | UpdateMMethod.ExtrapolateBefore.
Return Value
A polyline with updated M-values. If the input polyline is empty, then it is returned unchanged.