I'm drawing a blank this morning but how can you determine if a 3dpolyline is straight when it has vertexes? If there is only a start and end point that's easy to figure out but when vertexes are involved it gets confusing.
Comparing start and end point doesn't help as it would show both of these as "straight"