Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 1.17 KB

File metadata and controls

49 lines (33 loc) · 1.17 KB


Circle plot

Circle plot

Description

The circle plot displays deviations from a nominal circle.

Point structure

  • 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.

Geometry

Although the circle plot geometry has a radius parameter, it has no effect for displaying the plot.

Example

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;

Remarks

  • The plot points are connected in the order of their appearance, and not sorted by their angle.