Click or drag to resize

VectorGraphicOptimizerSortVectorsMinJump Method

Sorts all the vectors in the given layer to minimize jumps and jump distance.

Namespace: RAYLASE.Marker.VectorGraphicElement
Assembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
Syntax
C#
public void SortVectorsMinJump(
	VectorGraphicLayer layer,
	double tolerance = 1,
	int defaultPenNumber = 1,
	int? startIndex = null,
	bool removeEmptyPaths = false
)

Parameters

layer  VectorGraphicLayer
The layer to be worked on.
tolerance  Double  (Optional)
Two points are considered to be at the same location if their distance is less than this value (given in micrometers)
defaultPenNumber  Int32  (Optional)
Default pen number of the job element.
startIndex  NullableInt32  (Optional)
Index of the path to start. If null, start index will be chosen automatically.
removeEmptyPaths  Boolean  (Optional)
Removed paths, that don't contain any commands after optimization.
See Also