PolyLineMetafileCommandCreateArcs Method |
Loops through the given range of points and tries to detect arcs. We
start with the first three points and calculate an arc out of them. If
the angle does not exceed maxPhi it is considered to be a valid arc, and
the next point is checked if it lays on the same circle. This is to be
considered as yes if its distance from the arc's center does not differ
from the arc's radius more than delta and if the angle between the last
point and the point is not larger then maxPhi - and so on with the next
point. If an arc is detected it is put in the resulting list of
BaseMetafileCommands, if not the points are put into the list as lines.
Namespace: RAYLASE.Marker.VectorGraphicElement.MetafileCommandAssembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.20.0
Syntaxpublic List<BaseMetafileCommand> CreateArcs(
int startIdx = -1,
int numberOfPoints = 0,
double delta = 100,
double maxPhi = 0.3
)
Parameters
- startIdx Int32 (Optional)
- The start index in the list of points.
- numberOfPoints Int32 (Optional)
- The number of points to be considered. It
must be at least 3.
- delta Double (Optional)
- The delta determines how much a point may differ
to from the arc's radius to be considered laying on the same arc; given in micrometers.
- maxPhi Double (Optional)
- A point is considered to lay on the same arc
if its angle compared to its successor point is not larger than this
value.
for details.
Return Value
ListBaseMetafileCommandA list of lines and arcs replacing the original polyline.
See Also