CogGeneralContourEllipticalArcSegmentIterator EllipseFraction Property Cognex VisionPro 9.7
Returns/sets the fraction of the ellipse that passes through the start, mid and end points. For slight arcs, using roughly a quarter of the ellipse will usually provide good results. This property must be between 0 and 1 (exclusive).

Namespace: Cognex.VisionPro.Implementation.Internal
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Syntax

public virtual double EllipseFraction { get; set; }

Property Value

Type: Double

Implements

ICogGeneralContourEllipticalArcSegmentIterator EllipseFraction
Events

Event TypeReason
CogGeneralContourSegmentIteratorChanged

Fires when the fraction changes.

The following state flags may be affected:

    Exceptions

    ExceptionCondition
    CogShapeBadContourSegTypeException

    The SegmentType is not EllipticalArc

    CogIteratorInvalidIteratorException

    This iterator is not valid.

    ArgumentException

    The ellipse fraction is <= 0 or >= 1.

    Remarks

    Sets or gets the fraction of the ellipse that passes through the start, mid-, and end points. For slight arcs, using roughly a quarter of the ellipse usually provides good results. This value must be greater than 0 and less than 1.

    See Also