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.VisionPro3DAssembly: Cognex.VisionPro3D.Core (in Cognex.VisionPro3D.Core.dll) Version: 65.1.0.0
Syntax
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
| Exception | Condition |
|---|---|
| ArgumentNullException | If startCircle is null. |
| ArgumentException | If height is less than 0. |
| ArgumentException | If shapeState is not Cog3DShapeStateConstants.Curve, .Surface, or .Volume. |
See Also