SpiralShape OuterRotations

Gets or Sets the outer rotations of the spiral shape. The outer rotations define the number of turns the laser should scan after reaching the outer radius.

public float OuterRotations {get;Set}

 

Return value

float The number of rotations to scan

 

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);

    SpiralShape spiral = new SpiralShape();
    spiral.CenterPoint = new Point3D(0, 0, 0);
    spiral.InnerRadius = 0.2f;
    spiral.OuterRadius = 9f;
    spiral.Angle = 0.3f;
    spiral.Pitch = 0.1f;
    spiral.Clockwise = false;
    spiral.InnerRotations = 1;
    
    spiral.OuterRotations = 1;
    
    spiral.Outwards = true;
    spiral.ReturnToStart = true;

    vectorImage.AddSpiral(spiral, 0.1f);

    scanDocument.Scripts.Add(new ScanningScriptChunk("defaultScript", "ScanAll()"));

    try
    {
        scanDocument.StartScanning();
    }
    catch (Exception exp)
    {
        MessageBox.Show(exp.Message);
    }
}