EllipticalAnnulusSection CreateEllipticalArc Method Cognex VisionPro 9.24

Create a new elliptical arc (copying the specified parameters) from this annulus section. The arc is specified as a radial fraction between the start and end arcs. For example, specify 0 for the start arc, 0.5 for the center arc, and 1 for the end arc.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.24.0.0
Syntax

public EllipticalArc CreateEllipticalArc(
	double radialFraction,
	CopyShapeConstants copyFlags
)

Parameters

radialFraction
Type: System Double
Specifies the arc in relation to the section. Specify zero for the start arc, 0.5 for the center arc, and 1.0 for the end arc, or other values for intermediate arcs.
copyFlags
Type: Cognex.Vision CopyShapeConstants
Specify which attributes of the shape to copy to the new shape.

Return Value

Type: EllipticalArc

The new elliptical arc.

Exceptions

ExceptionCondition
ArgumentException(1 + radialFraction * ( RadialScale − 1)) <= 0
Remarks

Creates a new EllipticalArc based on this elliptical annulus section as defined by the radial fraction between the start and end arcs. Specify zero for the start arc, 0.5 for the center arc, and 1.0 for the end arc. copyFlags specifies which aspects of the arc are copied to the new shape. Although you can specify radialFraction values less than zero or greater than 1, this function will return an error if the resulting radii would be less than or equal to zero.

See Also