Click or drag to resize

VectorGraphicOptimizerReplaceCubicCurvesByArcs(VectorGraphicPath, Int32, Double) Method

Loops through all commands of the given path and converts all cubic curves to arcs.

Namespace: RAYLASE.Marker.VectorGraphicElement
Assembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
Syntax
C#
public void ReplaceCubicCurvesByArcs(
	VectorGraphicPath path,
	int numberOfPoints = 500,
	double collinearityDistance = 100
)

Parameters

path  VectorGraphicPath

[Missing <param name="path"/> documentation for "M:RAYLASE.Marker.VectorGraphicElement.VectorGraphicOptimizer.ReplaceCubicCurvesByArcs(RAYLASE.Marker.VectorGraphicElement.VectorGraphicPath,System.Int32,System.Double)"]

numberOfPoints  Int32  (Optional)
Number of points of the resulting polyline.
collinearityDistance  Double  (Optional)
A point is considered to be laying on the line defined by two other points if its perpendicular distance from the line is less than this value, measured in micrometers. See for details.
Remarks
In a first step the curve is replaced by a polyline. The number of points the point list will consist of is given by property NumberOfPoints. If 0 there will be 10 points. In a second step the number of points is reduced by removing collinear points. In this step the CollinearityDistance is used to check on collinearity. In the last step the remaining points are used to calculate an averaging arc.
See Also