Click or drag to resize

VectorGraphicOptimizerRemoveStraightPoints(VectorGraphicLayer, Double) Method

Loops through all paths and checks all polylines for adjacent points building a line. If found, the points between the line's borders are removed.

Namespace: RAYLASE.Marker.VectorGraphicElement
Assembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
Syntax
C#
public void RemoveStraightPoints(
	VectorGraphicLayer layer,
	double collinearityDistance = 100
)

Parameters

layer  VectorGraphicLayer
The layer to be worked on.
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
CollinearityDistance determines how close (in micrometers) a control point should be to the line to consider it to be on the line. See for details.
See Also