The circle plot displays deviations from a nominal circle.
- Angle (radians)
- Deviation
The deviations are assumed to be in normal direction to their position respective to the circle, which is specified by the angle.
Although the circle plot geometry has a radius parameter, it has no effect for displaying the plot.
var plot = new RoundnessPlot();
var points = new List<CirclePoint>();
var rand = new Random( DateTime.Now.Millisecond );
var segment = new Segment( "All", SegmentTypes.None );
for( var i = 0; i < count; i++ )
{
var angle = ( double ) i / count * 2.0 * Math.PI;
var deviation = 0.1 * ( Math.Sin( angle ) + ( rand.NextDouble() - 0.5 ) * 0.2 );
var point = new CirclePoint( segment, angle, deviation );
points.Add( point );
}
plot.Tolerance = new Tolerance( -0.1, 0.1 );
plot.DefaultErrorScaling = 100;
plot.Points = points;- The plot points are connected in the order of their appearance, and not sorted by their angle.
