VectorImage AddEllipticalArc
Adds an Elliptical Arc to the VectorImage
Overloads
public void AddEllipticalArc(EllipticalArcShape ellipticalArcShape) |
public void AddEllipticalArc(float centerX, float centerY, float centerZ, float majorAxisLength, float majorAxisAngle, float ratioMinorMajor, float startAngle, float sweepAngle) |
public void AddEllipticalArc(float centerX, float centerY, float centerZ, float majorAxisLength, float majorAxisAngle, float ratioMinorMajor, float startAngle, float sweepAngle, float maxSegmentationError) |
public void AddEllipticalArc(float centerX, float centerY, float centerZ, float majorAxisLength, float majorAxisAngle, float ratioMinorMajor, float startAngle, float sweepAngle, float maxSegmentationError, CutterCompensationDirection cutterCompensationDirection, float cutterCompensationWidth, CutterCompensationExtensionStyle extensionStyle) |
Return value
void |
Parameters
float | centerX | The x coordinate of the center |
float | centerY | The y coordinate of the center |
float | centerZ | The z coordinate of the center |
float | majorAxisLength | The length of the major axis |
float | majorAxisAngle | Angle(radians) of the Major axis, relative to x direction CCW |
float | ratioMinorMajor | Ratio, major axis length to minor axis length |
float | startAngle | Starting angle(radians) of the arc measured from the major axis CCW. |
float | sweepAngle | Sweep Angle(radian) of the Arc. |
float | maxSegmentationError | Specifies the greatest deviation of a curve from a straight line segment between two points on the curve. |
EllipticalArcShape | ellipticalArcShape | AN Elliptic arch shape object |
float | cutterCompensationWidth |
CutterCompensationDirection | cutterCompensationDirection |
|
CutterCompensationExtensionStyle | extensionStyle |
|
Example
Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);
if (scanDocument != null)
{
VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);
vectorImage.SetMarkSpeed(1000);
vectorImage.SetJumpSpeed(2000);
vectorImage.SetJumpDelay(100);
vectorImage.SetMarkDelay(100);
//Set Laser Delays
vectorImage.SetLaserOnDelay(10);
vectorImage.SetLaserOffDelay(10);
float majorAxisLength = 20;
float majorAxisAngle = (float)Math.PI / 2;
float ratioMinorMajor = 1.5f;
vectorImage.AddEllipse(centerX, centerY, centerZ, majorAxisLength, majorAxisAngle, ratioMinorMajor);
float startAngle = 0;
float sweepAngle = (float)Math.PI / 2;
vectorImage.AddEllipticalArc(centerX, centerY, centerZ, majorAxisLength, majorAxisAngle, ratioMinorMajor, startAngle, sweepAngle);
scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));
try
{
scanDocument.StartScanning();
}
catch
{
}
}