I am pretty new to arcpy and am slowly learning all its functions. I have a scenario where I am traversing a polyline. I get a start point and an end point on the polyline and form a segment with those points. That segment is used to create geometries to construct a polygon around that area of the polyline.
My problem is that on areas where the polyline curves, a part of the polyline is outside of the polygon. Ultimately I will need to shift my polygon downward/upward depending (change the heights of the polygon). I was looking to construct a function using the [contains] method but am lost on how to write a function to see if every point in the polyline, between that segment, fits inside of the polygon. Any help/ideas would be greatly appreciated. Thanks in advance