Cog3DCylinder Constructor (Cog3DCircle, Double, Cog3DShapeStateConstants)Cognex VisionPro
Constructs a cylinder using the specified start circle, height, and Cog3DShapeStateConstants. The cylinder extends from the start circle in the direction of the start circle's normal.

Namespace: Cognex.VisionPro3D
Assembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 65.1.0.0
Syntax

public Cog3DCylinder(
	Cog3DCircle startCircle,
	double height,
	Cog3DShapeStateConstants shapeState
)

Parameters

startCircle
Type: Cognex.VisionPro3D Cog3DCircle
The start circle of the cylinder. May not be null, but a degenerate circle is allowed.
height
Type: System Double
The height of this cylinder. Must be >= 0.
shapeState
Type: Cognex.VisionPro3D Cog3DShapeStateConstants
The state of this cylinder. Must be Cog3DShapeStateConstants.Curve, .Surface, or .Volume.
Exceptions

ExceptionCondition
ArgumentNullException If startCircle is null.
ArgumentException If height is less than 0.
ArgumentException If shapeState is not Cog3DShapeStateConstants.Curve, .Surface, or .Volume.
See Also