Converts a profile to an array of points.
def ProfileToPoint2DArray( inProfile: Profile, / ) -> outPoints: list[Point2D]