VectorGraphicOptimizerReplaceCircularArcsByPolylines(VectorGraphicLayer, Int32, Double) Method |
Loops through all paths and replaces all circular arcs by
approximating polylines.
Namespace: RAYLASE.Marker.VectorGraphicElementAssembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
Syntaxpublic void ReplaceCircularArcsByPolylines(
VectorGraphicLayer layer,
int numberOfPoints = 500,
double collinearityDistance = 100
)
Parameters
- layer VectorGraphicLayer
- The path to be worked on.
- numberOfPoints Int32 (Optional)
-
Number of points of the resulting polyline.
Remarks
This is important for example if you want to replace a cubic curve
by a polyline: In a first step the cubic curve is replaced by a
polyline (with this number of points), and in a second step
superfluous points are removed according to the collinearityDistance"/>.
- 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
The number of points the created polylines will have is
given by NumberOfPoints. The value gives the number
of points a whole circle will have. Smaller arcs will have
proportionally less points to have constant density.
If NumberOfPoints is 0, a default value is used: A whole circle or
ellipse will have 32 points then.
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.
See
for details.
See Also